i18n: localize moderation

This commit is contained in:
Xylight committed 2024-06-03 18:09:26 -07:00
1 parent a785a529c8
commit c6c53095df
3 files changed
+22 -10

No files matched your search

+3 -3
View File
@@ -14,6 +14,7 @@
import { Button } from 'mono-svelte'
import type { ReportView } from '$lib/lemmy/report.js'
import PrivateMessage from '$lib/components/lemmy/inbox/PrivateMessage.svelte'
import { t } from '$lib/translations'
export let item: ReportView
@@ -105,7 +106,7 @@
<div class="flex flex-row gap-4 items-center">
<div>
<span class="text-xs font-bold dark:text-zinc-400 text-slate-600">
Reason
{$t('routes.moderation.reason')}
</span>
<p>
{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}
>