From d7a4c0e29e3a6c08fdd512550a0695959fc37b44 Mon Sep 17 00:00:00 2001 From: Xylight Date: Wed, 5 Jun 2024 11:40:22 -0700 Subject: [PATCH] i18n: localize community page --- .../lemmy/community/CommunityForm.svelte | 25 +++++++++++++------ src/lib/i18n/en.json | 1 + 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/src/lib/components/lemmy/community/CommunityForm.svelte b/src/lib/components/lemmy/community/CommunityForm.svelte index bde3e043..51cd1b8b 100644 --- a/src/lib/components/lemmy/community/CommunityForm.svelte +++ b/src/lib/components/lemmy/community/CommunityForm.svelte @@ -8,6 +8,7 @@ import { Button, Checkbox, TextInput } from 'mono-svelte' import { uploadImage } from '$lib/util.js' import { t } from '$lib/translations' + import Header from '$lib/components/ui/layout/pages/Header.svelte' /** * The community ID to edit. @@ -107,23 +108,31 @@
-

Create Community

+
{$t('routes.createCommunity')}
{ formData.name = formData.name.toLowerCase().replaceAll(' ', '_') }} disabled={edit != undefined} /> - - - - + + + + - NSFW + {$t('post.badges.nsfw')} Only moderators can post @@ -135,6 +144,6 @@ loading={formData.submitting} disabled={formData.submitting} > - {edit ? 'Save' : 'Create'} + {edit ? $t('common.save') : $t('form.submit')} diff --git a/src/lib/i18n/en.json b/src/lib/i18n/en.json index 092f67c7..5a1501f9 100644 --- a/src/lib/i18n/en.json +++ b/src/lib/i18n/en.json @@ -197,6 +197,7 @@ }, "saved": "Saved", "createPost": "Create Post", + "createCommunity": "Create Community", "post": { "crosspostCount": "crossposts", "commentCount": "comments",