From 9f93bf8114b7310965386ed88b992fc8ea45eeec Mon Sep 17 00:00:00 2001 From: Thomas Fabritius Date: Sun, 24 Nov 2024 20:15:08 +0100 Subject: [PATCH] Adjust for @nuxtjs/i18n update from v8 to v9 --- frontend/components/AppHeader.vue | 4 +++- frontend/{ => i18n}/locales/de.yml | 0 frontend/{ => i18n}/locales/en.yml | 0 frontend/{ => i18n}/locales/es.yml | 0 4 files changed, 3 insertions(+), 1 deletion(-) rename frontend/{ => i18n}/locales/de.yml (100%) rename frontend/{ => i18n}/locales/en.yml (100%) rename frontend/{ => i18n}/locales/es.yml (100%) diff --git a/frontend/components/AppHeader.vue b/frontend/components/AppHeader.vue index d6816f8..af86fdf 100644 --- a/frontend/components/AppHeader.vue +++ b/frontend/components/AppHeader.vue @@ -8,7 +8,9 @@ import { useAuthStore } from '~/store/auth' const { t, locale, setLocaleCookie } = useI18n() -const locales = [ +type Locale = typeof locale.value + +const locales: { code: Locale, name: string, icon: string }[] = [ { code: 'en', name: 'English', diff --git a/frontend/locales/de.yml b/frontend/i18n/locales/de.yml similarity index 100% rename from frontend/locales/de.yml rename to frontend/i18n/locales/de.yml diff --git a/frontend/locales/en.yml b/frontend/i18n/locales/en.yml similarity index 100% rename from frontend/locales/en.yml rename to frontend/i18n/locales/en.yml diff --git a/frontend/locales/es.yml b/frontend/i18n/locales/es.yml similarity index 100% rename from frontend/locales/es.yml rename to frontend/i18n/locales/es.yml