i18n: localize community card
This commit is contained in:
1 parent
a488b8b118
commit
88956bb2d1
2 files changed
+18
-7
No files matched your search
@@ -290,8 +290,8 @@
|
|||||||
/>
|
/>
|
||||||
{community_view.subscribed == 'Subscribed' ||
|
{community_view.subscribed == 'Subscribed' ||
|
||||||
community_view.subscribed == 'Pending'
|
community_view.subscribed == 'Pending'
|
||||||
? 'Subscribed'
|
? $t('cards.community.subscribed')
|
||||||
: 'Subscribe'}
|
: $t('cards.community.subscribe')}
|
||||||
</Button>
|
</Button>
|
||||||
{/if}
|
{/if}
|
||||||
{#if $profile?.user && amMod($profile.user, community_view.community)}
|
{#if $profile?.user && amMod($profile.user, community_view.community)}
|
||||||
@@ -311,17 +311,19 @@
|
|||||||
</Button>
|
</Button>
|
||||||
<MenuButton href="/modlog?community={community_view.community.id}">
|
<MenuButton href="/modlog?community={community_view.community.id}">
|
||||||
<Icon src={Newspaper} size="16" mini />
|
<Icon src={Newspaper} size="16" mini />
|
||||||
Modlog
|
{$t('cards.community.modlog')}
|
||||||
</MenuButton>
|
</MenuButton>
|
||||||
{#if $profile?.jwt}
|
{#if $profile?.jwt}
|
||||||
<MenuButton color="danger-subtle" size="lg" on:click={block}>
|
<MenuButton color="danger-subtle" size="lg" on:click={block}>
|
||||||
<Icon src={NoSymbol} size="16" mini slot="prefix" />
|
<Icon src={NoSymbol} size="16" mini slot="prefix" />
|
||||||
{community_view.blocked ? 'Unblock' : 'Block'}
|
{community_view.blocked
|
||||||
|
? $t('cards.community.unblock')
|
||||||
|
: $t('cards.community.block')}
|
||||||
</MenuButton>
|
</MenuButton>
|
||||||
{#if $profile?.user}
|
{#if $profile?.user}
|
||||||
<MenuButton color="danger-subtle" size="lg" on:click={blockInstance}>
|
<MenuButton color="danger-subtle" size="lg" on:click={blockInstance}>
|
||||||
<Icon src={BuildingOffice2} size="16" mini slot="prefix" />
|
<Icon src={BuildingOffice2} size="16" mini slot="prefix" />
|
||||||
Block instance
|
{$t('cards.community.blockInstance')}
|
||||||
</MenuButton>
|
</MenuButton>
|
||||||
{/if}
|
{/if}
|
||||||
{#if $profile?.user && isAdmin($profile.user)}
|
{#if $profile?.user && isAdmin($profile.user)}
|
||||||
@@ -330,7 +332,7 @@
|
|||||||
on:click={() => (purgingCommunity = !purgingCommunity)}
|
on:click={() => (purgingCommunity = !purgingCommunity)}
|
||||||
>
|
>
|
||||||
<Icon src={Fire} size="16" mini slot="prefix" />
|
<Icon src={Fire} size="16" mini slot="prefix" />
|
||||||
Purge
|
{$t('admin.purge')}
|
||||||
</MenuButton>
|
</MenuButton>
|
||||||
{/if}
|
{/if}
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
+10
-1
@@ -181,9 +181,18 @@
|
|||||||
},
|
},
|
||||||
"community": {
|
"community": {
|
||||||
"members": "Members",
|
"members": "Members",
|
||||||
"moderators": "Moderators"
|
"moderators": "Moderators",
|
||||||
|
"subscribe": "Subscribe",
|
||||||
|
"subscribed": "Subscribed",
|
||||||
|
"modlog": "Modlog",
|
||||||
|
"block": "Block",
|
||||||
|
"unblock": "Unblock",
|
||||||
|
"blockInstance": "Block instance"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"admin": {
|
||||||
|
"purge": "Purge"
|
||||||
|
},
|
||||||
"content": {
|
"content": {
|
||||||
"all": "All",
|
"all": "All",
|
||||||
"users": "Users",
|
"users": "Users",
|
||||||
|
|||||||
Reference in new issue
Block a user