diff --git a/src/lib/components/lemmy/moderation/BanModal.svelte b/src/lib/components/lemmy/moderation/BanModal.svelte index 43d31c54..e8f97eff 100644 --- a/src/lib/components/lemmy/moderation/BanModal.svelte +++ b/src/lib/components/lemmy/moderation/BanModal.svelte @@ -6,6 +6,8 @@ import { profile } from '$lib/auth.js' import { Button, Checkbox, Modal, TextInput } from 'mono-svelte' import MarkdownEditor from '$lib/components/markdown/MarkdownEditor.svelte' + import { t } from '$lib/translations' + import CommunityLink from '../community/CommunityLink.svelte' export let open = false let item: Person | undefined @@ -101,42 +103,38 @@ -

{banned ? 'Unbanning' : 'Banning'} user

+

+ {banned ? $t('moderation.ban.unbanning') : $t('moderation.ban.banning')} +

{#if item}
{item.name}
-

- {banned ? 'Unbanning' : 'Banning'} from - {community ? community.name : 'site'} -

+ {#if community} + + {/if} {#if !banned} - Delete data + {$t('moderation.ban.deleteData')} - This will delete ALL of this user's posts and comments on this {community - ? 'community' - : 'site'}. + {$t('moderation.ban.warning')} {/if} {/if} diff --git a/src/lib/i18n/en.json b/src/lib/i18n/en.json index 693ebf9d..c9f2b42e 100644 --- a/src/lib/i18n/en.json +++ b/src/lib/i18n/en.json @@ -391,7 +391,20 @@ "locked": "This post is locked." }, "moderation": { - "report": "Report" + "report": "Report", + "ban": { + "banning": "Banning User", + "unbanning": "Unbanning User", + "deleteData": "Delete data", + "warning": "This will delete ALL of this user's submissions here.", + "expires": "Expires (UTC)" + }, + "reason": "Reason", + "lock": "Lock", + "unlock": "Unlock", + "remove": "Remove", + "restore": "Restore", + "label": "Moderation" }, "common": { "back": "Back",