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
@@ -45,7 +45,7 @@ titleStore.title = data.value ? tKey(data.value, 'title').value : undefined;
`/hunt/${data ? tSluggy(data.hunt).value : sluggy(huntSlug!)}`
)
"
>{{ t('pages.common.back_to_hunt') }}</VaButton
>{{ t('page.common.back_to_hunt') }}</VaButton
>
<VaButton icon="replay" color="success" @click="refresh"
>Refresh</VaButton
@@ -114,7 +114,7 @@ const createImageURL = (file: File) => URL.createObjectURL(file);
`/hunt/${data ? tSluggy(data.hunt).value : sluggy(huntSlug!)}`
)
"
>{{ t('pages.common.back_to_hunt') }}</VaButton
>{{ t('page.common.back_to_hunt') }}</VaButton
>
<VaButton
icon="refresh"
@@ -134,7 +134,7 @@ const createImageURL = (file: File) => URL.createObjectURL(file);
`/hunt/${data?.hunt ? tSluggy(data.hunt).value : sluggy(huntSlug!)}/${data ? tSluggy(data).value : sluggy(questSlug!)}}/admin`
)
"
>{{ t('pages.common.admin') }}</VaButton
>{{ t('page.common.admin') }}</VaButton
></VaButtonGroup
>
<div v-if="data">
+5 -5
View File
@@ -54,7 +54,7 @@ const { data, refresh, error } = await useFetch(`/api/hunt/${id}/diashow`, {
useHead({
title: t('layouts.two_title', {
title: data.value?.name || name,
subtitle: t('pages.diashow.head')
subtitle: t('page.diashow.head')
})
});
@@ -93,7 +93,7 @@ titleStore.title = data.value?.name;
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
@@ -101,7 +101,7 @@ titleStore.title = data.value?.name;
><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
@@ -109,12 +109,12 @@ titleStore.title = data.value?.name;
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>
+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>
+1 -1
View File
@@ -265,7 +265,7 @@ const columns = leaderboardColumns.map((c) =>
><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
>
</article>
</template>