Switch to translatable data

This commit is contained in:
2025-08-20 23:18:40 +02:00
parent c35fb06830
commit cc544322b2
36 changed files with 431 additions and 146 deletions
+3 -2
View File
@@ -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