From f7271931d73f65f1d88008f98de6bd3f87cd9a8b Mon Sep 17 00:00:00 2001 From: Xylight Date: Mon, 3 Jun 2024 17:37:57 -0700 Subject: [PATCH] i18n: localize subscribe button --- src/lib/components/lemmy/community/CommunityItem.svelte | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/components/lemmy/community/CommunityItem.svelte b/src/lib/components/lemmy/community/CommunityItem.svelte index cfaf4658..d552b440 100644 --- a/src/lib/components/lemmy/community/CommunityItem.svelte +++ b/src/lib/components/lemmy/community/CommunityItem.svelte @@ -20,6 +20,7 @@ import CommunityCard from '$lib/components/lemmy/community/CommunityCard.svelte' import LabelStat from '$lib/components/ui/LabelStat.svelte' import PostBody from '../post/PostBody.svelte' + import { t } from '$lib/translations' export let community: CommunityView @@ -77,9 +78,9 @@ slot="prefix" /> {#if isSubscribed(community.subscribed)} - Subscribed + {$t('cards.community.subscribed')} {:else} - Subscribe + {$t('cards.community.subscribe')} {/if}