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
@@ -8,6 +8,7 @@ const emit = defineEmits<{ subscriptionChange: [uploadId: string, enabled: boole
const { user } = useAuth()
const { reactionsFor, toggle } = useUploadReactions()
const { t } = useI18n()
const busy = ref(false)
const pending = ref<string | null>(null)
@@ -22,7 +23,7 @@ const burstNonce = ref(0)
async function pick(emoji: string) {
if (!user.value) {
toast.error('Melde dich an, um zu reagieren.')
toast.error(t('comments.loginToReact'))
return
}
if (busy.value) return
@@ -36,7 +37,7 @@ async function pick(emoji: string) {
emit('subscriptionChange', uploadId, result.isSubscribed)
}
catch {
toast.error('Reaktion fehlgeschlagen')
toast.error(t('comments.reactionFailed'))
}
finally {
busy.value = false