Start i18n on static texts
This commit is contained in:
@@ -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: 'Diashow'
|
||||
subtitle: t('pages.pictures.head')
|
||||
})
|
||||
});
|
||||
|
||||
@@ -95,35 +95,36 @@ titleStore.title = data.value ? tKey(data.value, 'name').value : undefined;
|
||||
v-if="data.count <= 0"
|
||||
color="warning"
|
||||
class="sm:col-span-2 md:col-span-3 lg:col-span-4"
|
||||
>No pictures has been submitted yet :(</VaAlert
|
||||
>{{ t('pages.common.no_pictures') }}</VaAlert
|
||||
>
|
||||
</div>
|
||||
<div
|
||||
v-else-if="error"
|
||||
class="flex h-full w-full flex-col items-center justify-center text-center text-2xl"
|
||||
>
|
||||
<VaAlert color="danger" class="w-[90%]"
|
||||
>Answers are not revealed yet, please wait until the end!</VaAlert
|
||||
>
|
||||
<VaAlert color="danger" class="w-[90%]">{{
|
||||
t('pages.common.not_revealed')
|
||||
}}</VaAlert>
|
||||
<VaAlert v-if="error.statusCode !== 403" color="danger" class="w-[90%]">{{
|
||||
error
|
||||
}}</VaAlert
|
||||
><VaButton
|
||||
icon="arrow_back"
|
||||
:to="$localePath(`/hunt/${sluggy($nuxt.$slugData.huntSlug!)}`)"
|
||||
>Back to Hunt</VaButton
|
||||
>{{ t('pages.common.back_to_hunt') }}</VaButton
|
||||
>
|
||||
</div>
|
||||
<div
|
||||
v-else
|
||||
class="flex h-full w-full flex-col items-center justify-center text-center text-2xl"
|
||||
>
|
||||
<VaAlert color="danger" class="w-[90%]"
|
||||
>Answers are not revealed yet, please wait until the end!</VaAlert
|
||||
<VaAlert color="danger" class="w-[90%]">{{
|
||||
t('pages.common.not_revealed')
|
||||
}}</VaAlert
|
||||
><VaButton
|
||||
icon="arrow_back"
|
||||
:to="$localePath(`/hunt/${sluggy($nuxt.$slugData.huntSlug!)}`)"
|
||||
>Back to Hunt</VaButton
|
||||
>{{ t('pages.common.back_to_hunt') }}</VaButton
|
||||
>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
Reference in New Issue
Block a user