Fixed nuxt i18n cookie config

This commit is contained in:
Alexis
2024-09-08 17:47:58 +02:00
parent 63c1cef77e
commit 36bffbd0ab
2 changed files with 6 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
export default defineI18nConfig(() => ({
legacy: false,
locale: "fr",
availableLocales: ["fr", "en"],
fallbackLocale: "fr",
messages: {
en: {
head: {

View File

@@ -18,8 +18,10 @@ export default defineNuxtConfig({
vueI18n: "./i18n.config.ts",
detectBrowserLanguage: {
useCookie: true,
cookieKey: "tttools_lang"
},
cookieKey: "tttools_lang",
redirectOn: "all",
alwaysRedirect: true,
}
},
supabase: {