diff --git a/src/lib/components/lemmy/post/feed/VirtualFeed.svelte b/src/lib/components/lemmy/post/feed/VirtualFeed.svelte index 6469f0c3..6c91164b 100644 --- a/src/lib/components/lemmy/post/feed/VirtualFeed.svelte +++ b/src/lib/components/lemmy/post/feed/VirtualFeed.svelte @@ -278,11 +278,10 @@ {:else}
- {#if feedData.community_name} - You have reached the end of {feedData.community_name}. - {:else} - You have reached the end of the feed. - {/if} + {$t('routes.frontpage.endFeed', { + // @ts-ignore + community_name: feedData.community_name ?? 'undefined', + })}
{/if} diff --git a/src/lib/i18n/en.json b/src/lib/i18n/en.json index be77a8a5..967182b4 100644 --- a/src/lib/i18n/en.json +++ b/src/lib/i18n/en.json @@ -183,7 +183,8 @@ "routes": { "frontpage": { "title": "Frontpage", - "footer": "{{users:number}} active {{users; 1:user; default:users;}}" + "footer": "{{users:number}} active {{users; 1:user; default:users;}}", + "endFeed": "You have reached the end of {{community_name; undefined:the feed.; default:{{community_name}}.}}" }, "modlog": "Modlog", "instances": "Instances",