Fix i18n bugs

This commit is contained in:
2025-08-30 16:36:39 +02:00
parent 7948fed103
commit c2c52dbe45
7 changed files with 22 additions and 22 deletions
+7 -7
View File
@@ -67,7 +67,7 @@ const { data, refresh, error } = await useFetch(`/api/hunt/${id}/diashow`, {
useHead({
title: t('layouts.two_title', {
title: hasKey(data.value, 'name') ? tKey(data.value!, 'name').value : name,
subtitle: t('pages.pictures.head')
subtitle: t('page.pictures.head')
})
});
@@ -88,14 +88,14 @@ titleStore.title = data.value ? tKey(data.value, 'name').value : undefined;
:key="pic.picture.url"
:src="pic.picture.url"
class="h-auto max-w-full rounded-lg"
:title="`${tKey(pic.quest, 'title')} — ${pic.team.name} — ${pic.picture.creator.name}`"
:title="`${tKey(pic.quest, 'title').value} — ${pic.team.name} — ${pic.picture.creator.name}`"
/>
</div>
<VaAlert
v-if="data.count <= 0"
color="warning"
class="sm:col-span-2 md:col-span-3 lg:col-span-4"
>{{ t('pages.common.no_pictures') }}</VaAlert
>{{ t('page.common.no_pictures') }}</VaAlert
>
</div>
<div
@@ -103,7 +103,7 @@ titleStore.title = data.value ? tKey(data.value, 'name').value : undefined;
class="flex h-full w-full flex-col items-center justify-center text-center text-2xl"
>
<VaAlert color="danger" class="w-[90%]">{{
t('pages.common.not_revealed')
t('page.common.not_revealed')
}}</VaAlert>
<VaAlert v-if="error.statusCode !== 403" color="danger" class="w-[90%]">{{
error
@@ -111,7 +111,7 @@ titleStore.title = data.value ? tKey(data.value, 'name').value : undefined;
><VaButton
icon="arrow_back"
:to="$localePath(`/hunt/${sluggy($nuxt.$slugData.huntSlug!)}`)"
>{{ t('pages.common.back_to_hunt') }}</VaButton
>{{ t('page.common.back_to_hunt') }}</VaButton
>
</div>
<div
@@ -119,12 +119,12 @@ titleStore.title = data.value ? tKey(data.value, 'name').value : undefined;
class="flex h-full w-full flex-col items-center justify-center text-center text-2xl"
>
<VaAlert color="danger" class="w-[90%]">{{
t('pages.common.not_revealed')
t('page.common.not_revealed')
}}</VaAlert
><VaButton
icon="arrow_back"
:to="$localePath(`/hunt/${sluggy($nuxt.$slugData.huntSlug!)}`)"
>{{ t('pages.common.back_to_hunt') }}</VaButton
>{{ t('page.common.back_to_hunt') }}</VaButton
>
</div>
</article>