diff --git a/src/lib/i18n/en.json b/src/lib/i18n/en.json index f727cbf5..f7b0d996 100644 --- a/src/lib/i18n/en.json +++ b/src/lib/i18n/en.json @@ -115,7 +115,22 @@ "credentials": "Credentials", "moderates": "Moderates" }, - "accounts": "Accounts" + "accounts": "Accounts", + "post": { + "crosspostCount": "crossposts", + "commentCount": "comments", + "addComment": "Add a comment", + "scrollToTop": "Scroll to top", + "instanceWarning": "This post was requested from a different server than your account's. Many actions won't work.", + "remoteView": "Remote View", + "localView": "Local View", + "thread": { + "single": "You're viewing a single thread.", + "allComments": "All Comments", + "part": "You're viewing part of a thread.", + "context": "Show Context" + } + } }, "cards": { "site": { diff --git a/src/routes/post/[instance]/[id=integer]/+page.svelte b/src/routes/post/[instance]/[id=integer]/+page.svelte index 83999350..d8598193 100644 --- a/src/routes/post/[instance]/[id=integer]/+page.svelte +++ b/src/routes/post/[instance]/[id=integer]/+page.svelte @@ -42,6 +42,7 @@ import Expandable from '$lib/components/ui/Expandable.svelte' import { addResumable } from '$lib/lemmy/item.js' import { Popover } from 'mono-svelte' + import { t } from '$lib/translations.js' export let data @@ -161,11 +162,10 @@ slot="target" class="bg-slate-200 dark:bg-zinc-700 p-0.5 rounded-full text-primary-900 dark:text-primary-100" /> - This post was fetched from a different server than your account's. Many actions - won't work. + {$t('routes.post.instanceWarning')} - Remote View + {$t('routes.post.remoteView')} {#if $profile?.jwt} {/if} @@ -243,7 +243,7 @@ class="inline-block w-full text-left text-base font-normal" > {post.cross_posts.length} - crossposts + {$t('routes.post.crosspostCount')}