i18n implemented

This commit is contained in:
2026-10-03 23:45:04 +02:00
parent 2ccea34bb9
commit d95ed40053
55 changed files with 2952 additions and 301 deletions
+3 -2
View File
@@ -5,6 +5,7 @@ import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover
const props = defineProps<{ commentId: number }>()
const { toggle } = useCommentReactions()
const { t } = useI18n()
const open = ref(false)
const busy = ref(false)
@@ -17,7 +18,7 @@ async function pick(emoji: string) {
await toggle(props.commentId, emoji)
}
catch {
toast.error('Reaktion fehlgeschlagen')
toast.error(t('comments.reactionFailed'))
}
finally {
busy.value = false
@@ -31,7 +32,7 @@ async function pick(emoji: string) {
<button
type="button"
class="cursor-pointer self-center rounded-md p-1 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground"
aria-label="Reaktion hinzufügen"
:aria-label="$t('comments.addReaction')"
>
<Icon name="ph:smiley-fill" class="size-5" />
</button>