i18n: localize subscribe button

This commit is contained in:
Xylight committed 2024-06-03 17:37:57 -07:00
1 parent 88956bb2d1
commit f7271931d7
1 file changed
+3 -2
@@ -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}
</Button>
</Subscribe>