diff --git a/src/lib/components/lemmy/comment/CommentForm.svelte b/src/lib/components/lemmy/comment/CommentForm.svelte index 20109510..907503c5 100644 --- a/src/lib/components/lemmy/comment/CommentForm.svelte +++ b/src/lib/components/lemmy/comment/CommentForm.svelte @@ -8,6 +8,7 @@ import MarkdownEditor from '$lib/components/markdown/MarkdownEditor.svelte' import { placeholders } from '$lib/util.js' import { Button } from 'mono-svelte' + import { t } from '$lib/translations' export let postId: number export let parentId: number | undefined = undefined @@ -69,7 +70,7 @@ {...$$restProps} {rows} placeholder={locked - ? 'This post is locked.' + ? $t('comment.locked') : placeholder ?? placeholders.get('comment')} bind:value disabled={locked || loading} @@ -92,7 +93,7 @@ {loading} disabled={locked || loading} > - Submit + {$t('form.submit')} {/if} diff --git a/src/lib/components/markdown/MarkdownEditor.svelte b/src/lib/components/markdown/MarkdownEditor.svelte index 065b9fee..6e34d4f4 100644 --- a/src/lib/components/markdown/MarkdownEditor.svelte +++ b/src/lib/components/markdown/MarkdownEditor.svelte @@ -2,6 +2,7 @@ import { profile } from '$lib/auth.js' import MultiSelect from '$lib/components/input/Switch.svelte' import Markdown from '$lib/components/markdown/Markdown.svelte' + import { t } from '$lib/translations' import { uploadImage } from '$lib/util.js' import { ImageInput, toast } from 'mono-svelte' import { Button, Label, Modal, TextArea } from 'mono-svelte' @@ -317,7 +318,7 @@ overflow-hidden transition-colors" {/if} diff --git a/src/lib/i18n/en.json b/src/lib/i18n/en.json index 1aacd60a..5f6c87ff 100644 --- a/src/lib/i18n/en.json +++ b/src/lib/i18n/en.json @@ -98,7 +98,9 @@ "password": "Password", "2fa": "2FA Code", "forgotpassword": "Forgot Password", - "submit": "Submit" + "submit": "Submit", + "edit": "Edit", + "preview": "Preview" }, "routes": { "frontpage": { @@ -182,7 +184,8 @@ "actions": { "label": "Actions", "link": "Copy Link" - } + }, + "locked": "This post is locked." }, "moderation": { "report": "Report"