feat(i18): detect browser language and add French

This commit is contained in:
2026-02-26 19:44:43 +01:00
parent 7c69a4b5bc
commit c1711de7c0
2 changed files with 217 additions and 3 deletions

View File

@@ -99,8 +99,11 @@ export default defineNuxtConfig({
{ code: "ja", language: "ja-JP", name: "日本語", file: "ja.json" },
],
defaultLocale: "en",
// TODO: put back to true
detectBrowserLanguage: false,
detectBrowserLanguage: {
useCookie: true,
cookieKey: "i18n_redirected",
redirectOn: "root",
},
},
image: {
quality: 80,