From 1d5b4d4390c1821b2baa7c432c742e7a9f136df6 Mon Sep 17 00:00:00 2001 From: Xylight Date: Mon, 3 Jun 2024 16:34:02 -0700 Subject: [PATCH] i18n: localize community card --- .../lemmy/community/CommunityCard.svelte | 14 +++++++++----- src/lib/i18n/en.json | 4 ++++ 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/src/lib/components/lemmy/community/CommunityCard.svelte b/src/lib/components/lemmy/community/CommunityCard.svelte index 16bfbef5..7c967d68 100644 --- a/src/lib/components/lemmy/community/CommunityCard.svelte +++ b/src/lib/components/lemmy/community/CommunityCard.svelte @@ -46,6 +46,7 @@ import ShieldIcon from '../moderation/ShieldIcon.svelte' import ItemList from '../generic/ItemList.svelte' import { communityLink, userLink } from '$lib/lemmy/generic' + import { t } from '$lib/translations' export let community_view: CommunityView export let moderators: CommunityModeratorView[] = [] @@ -224,23 +225,25 @@ > - About + + {$t('cards.site.about')} - Stats + + {$t('cards.site.stats')}
@@ -250,7 +253,8 @@ {#if moderators && moderators.length > 0} - Moderators + + {$t('cards.community.moderators')} ({ diff --git a/src/lib/i18n/en.json b/src/lib/i18n/en.json index f7b0d996..80fdcee1 100644 --- a/src/lib/i18n/en.json +++ b/src/lib/i18n/en.json @@ -137,6 +137,10 @@ "about": "About", "stats": "Stats", "admins": "Admins" + }, + "community": { + "members": "Members", + "moderators": "Moderators" } }, "content": {