From 378f07a862c0156d4115edcf0cc23467804c1bc2 Mon Sep 17 00:00:00 2001 From: Alexis <35.alexis.pele@gmail.com> Date: Mon, 25 Nov 2024 18:09:18 +0100 Subject: [PATCH] User locale now saves ! --- nuxt.config.ts | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/nuxt.config.ts b/nuxt.config.ts index f4eea9f..3db37db 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -16,12 +16,21 @@ export default defineNuxtConfig({ i18n: { vueI18n: "./i18n.config.ts", + strategy: "no_prefix", detectBrowserLanguage: { useCookie: true, cookieKey: "tttools_lang", - redirectOn: "all", - alwaysRedirect: true, - } + }, + locales: [ + { + code: "en", + name: "English" + }, + { + code: "fr", + name: "Français" + } + ] }, supabase: {