0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-03-31 22:51:25 -05:00

fix(ui): set ui specific i18n storage key (#1441)

* chore(ui): set ui i18n storage key

set ui i18n storage key

* fix(ui): update name

update name

* chore(console): add ac i18n storage key

add ac i18n storage key

* fix(ui,console): update key name

update key name

* fix(ui,console): fix typo

fix typo
This commit is contained in:
simeng-li 2022-07-07 11:08:07 +08:00 committed by GitHub
parent f8a9743b2e
commit 5b121d7855
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View file

@ -14,6 +14,10 @@ const initI18n = async (language?: Language) =>
escapeValue: false,
},
lng: language,
detection: {
lookupLocalStorage: 'i18nextLogtoAcLng',
lookupSessionStorage: 'i18nextLogtoAcLng',
},
});
export default initI18n;

View file

@ -11,6 +11,10 @@ const initI18n = async (languageSettings?: LanguageInfo) => {
interpolation: {
escapeValue: false,
},
detection: {
lookupLocalStorage: 'i18nextLogtoUiLng',
lookupSessionStorage: 'i18nextLogtoUiLng',
},
};
const options: InitOptions =