From 00b4f3c79cc1811db0511db5e3c8efd1d27f0be2 Mon Sep 17 00:00:00 2001 From: kayjaydee Date: Wed, 8 Apr 2026 16:33:07 +0200 Subject: [PATCH] fix(i18n): move locale files to i18n/locales/ for @nuxtjs/i18n resolution @nuxtjs/i18n resolves langDir relative to its own i18n/ directory, not the project root. Moved fr.json and en.json accordingly. Co-Authored-By: Claude Opus 4.6 (1M context) --- {app => i18n}/locales/en.json | 0 {app => i18n}/locales/fr.json | 0 nuxt.config.ts | 2 +- 3 files changed, 1 insertion(+), 1 deletion(-) rename {app => i18n}/locales/en.json (100%) rename {app => i18n}/locales/fr.json (100%) diff --git a/app/locales/en.json b/i18n/locales/en.json similarity index 100% rename from app/locales/en.json rename to i18n/locales/en.json diff --git a/app/locales/fr.json b/i18n/locales/fr.json similarity index 100% rename from app/locales/fr.json rename to i18n/locales/fr.json diff --git a/nuxt.config.ts b/nuxt.config.ts index d5560dd..e2fd294 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -35,7 +35,7 @@ export default defineNuxtConfig({ { code: 'fr', language: 'fr-FR', file: 'fr.json' }, { code: 'en', language: 'en-US', file: 'en.json' }, ], - langDir: 'app/locales/', + langDir: 'locales/', detectBrowserLanguage: { useCookie: true, cookieKey: 'i18n_redirected',