feat(i18): detect browser language and add French
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user