diff --git a/src/lib/i18n/en.json b/src/lib/i18n/en.json index b7615178..3ed85f23 100644 --- a/src/lib/i18n/en.json +++ b/src/lib/i18n/en.json @@ -215,6 +215,16 @@ "title": "No new notifications", "description": "Messages, replies, and mentions will appear here." } + }, + "moderation": { + "title": "Moderation", + "empty": { + "title": "No new reports", + "description": "When submissions are reported, you can act on them here." + }, + "reason": "Reason", + "resolve": "Resolve", + "unresolve": "Unresolve" } }, "cards": { diff --git a/src/routes/moderation/+page.svelte b/src/routes/moderation/+page.svelte index 1f2902d0..8ad052dc 100644 --- a/src/routes/moderation/+page.svelte +++ b/src/routes/moderation/+page.svelte @@ -14,12 +14,14 @@ import Placeholder from '$lib/components/ui/Placeholder.svelte' import { searchParam } from '$lib/util.js' import { Button, Material, Select } from 'mono-svelte' + import { t } from '$lib/translations' + import Header from '$lib/components/ui/layout/pages/Header.svelte' export let data
{item.reason} @@ -116,8 +117,7 @@ class="w-8 h-8 !p-1 ml-auto {item.resolved ? '!text-green-600 dark:!text-green-400' : ''}" - aria-label="Resolve" - title="Resolve" + title={$t('routes.moderation.resolve')} loading={resolving} disabled={resolving} >