diff --git a/packages/console/src/i18n/init.ts b/packages/console/src/i18n/init.ts index 79fdadd8a..c62d03d68 100644 --- a/packages/console/src/i18n/init.ts +++ b/packages/console/src/i18n/init.ts @@ -14,6 +14,10 @@ const initI18n = async (language?: Language) => escapeValue: false, }, lng: language, + detection: { + lookupLocalStorage: 'i18nextLogtoAcLng', + lookupSessionStorage: 'i18nextLogtoAcLng', + }, }); export default initI18n; diff --git a/packages/ui/src/i18n/init.ts b/packages/ui/src/i18n/init.ts index 8e36cbe4a..16722d961 100644 --- a/packages/ui/src/i18n/init.ts +++ b/packages/ui/src/i18n/init.ts @@ -11,6 +11,10 @@ const initI18n = async (languageSettings?: LanguageInfo) => { interpolation: { escapeValue: false, }, + detection: { + lookupLocalStorage: 'i18nextLogtoUiLng', + lookupSessionStorage: 'i18nextLogtoUiLng', + }, }; const options: InitOptions =