mirror of
https://github.com/dec0dOS/zero-ui.git
synced 2025-07-07 05:21:40 -07:00
feat: i18n persistence on logout
This commit is contained in:
parent
80f1ab4185
commit
d19bf07382
3 changed files with 12 additions and 6 deletions
|
@ -11,15 +11,19 @@ i18n
|
|||
.use(Backend)
|
||||
.init({
|
||||
compatibilityJSON: "v4",
|
||||
lng: userLanguage || "en",
|
||||
//lng: "en",
|
||||
fallbackLng: "en",
|
||||
debug: false,
|
||||
detection: {
|
||||
order: ["path", "cookie", "localStorage", "htmlTag"],
|
||||
caches: ["localStorage", "cookie"], // cache user language on
|
||||
},
|
||||
debug: true,
|
||||
//keySeparator: false, // we use content as keys
|
||||
interpolation: {
|
||||
escapeValue: true,
|
||||
},
|
||||
react: {
|
||||
useSuspense: false,
|
||||
useSuspense: true,
|
||||
},
|
||||
supportedLngs: ["en", "es-ES"],
|
||||
backend: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue