Switch to translatable data
This commit is contained in:
@@ -7,13 +7,14 @@ definePageMeta({
|
||||
const app = useNuxtApp();
|
||||
const { loggedIn } = useUserSession();
|
||||
const { t } = useI18n();
|
||||
const { tKey } = useI18nKey();
|
||||
|
||||
const { name, id } = app.$slugData.huntSlug!;
|
||||
|
||||
const titleStore = useTitleStore();
|
||||
|
||||
type Picture = {
|
||||
quest: { id: number; title: string };
|
||||
quest: { id: number; title_de: string; title_en: string };
|
||||
team: {
|
||||
name: string;
|
||||
id: number;
|
||||
@@ -81,7 +82,7 @@ titleStore.title = data.value?.name;
|
||||
<p
|
||||
class="absolute top-2 mx-auto rounded bg-gray-200/75 px-2 py-1 text-center text-xl font-bold"
|
||||
>
|
||||
{{ item.quest.title }} — {{ item.team.name }} —
|
||||
{{ tKey(item.quest, 'title') }} — {{ item.team.name }} —
|
||||
{{ item.picture.creator.name }}
|
||||
</p></template
|
||||
></VaCarousel
|
||||
|
||||
Reference in New Issue
Block a user