fix(01): WR-01 complete i18n config with strategy, langDir and locale files

This commit is contained in:
2026-04-08 15:17:00 +02:00
parent 184e1257fe
commit c6744ab107
3 changed files with 14 additions and 2 deletions
+1
View File
@@ -0,0 +1 @@
{}
+1
View File
@@ -0,0 +1 @@
{}
+12 -2
View File
@@ -15,8 +15,18 @@ export default defineNuxtConfig({
strict: true strict: true
}, },
i18n: { i18n: {
locales: ['fr', 'en'], strategy: 'prefix_except_default',
defaultLocale: 'fr' defaultLocale: 'fr',
locales: [
{ code: 'fr', language: 'fr-FR', file: 'fr.json' },
{ code: 'en', language: 'en-US', file: 'en.json' },
],
langDir: 'locales/',
detectBrowserLanguage: {
useCookie: true,
cookieKey: 'i18n_redirected',
redirectOn: 'root',
},
}, },
runtimeConfig: { runtimeConfig: {
public: { public: {