|
|
@ -24,7 +24,7 @@ const statePlugin = async (_nuxtApp) => { |
|
|
|
if (![...Object.keys(Language), ...Object.keys(LanguageAlias)].includes(currentLang)) state.lang.value = currentLang = 'en' |
|
|
|
if (![...Object.keys(Language), ...Object.keys(LanguageAlias)].includes(currentLang)) state.lang.value = currentLang = 'en' |
|
|
|
|
|
|
|
|
|
|
|
/** force load initial locale messages */ |
|
|
|
/** force load initial locale messages */ |
|
|
|
await loadLocaleMessages(currentLang) |
|
|
|
await Promise.all([loadLocaleMessages(currentLang), loadLocaleMessages('en')]) |
|
|
|
|
|
|
|
|
|
|
|
/** set i18n locale to stored language */ |
|
|
|
/** set i18n locale to stored language */ |
|
|
|
await setI18nLanguage(currentLang) |
|
|
|
await setI18nLanguage(currentLang) |
|
|
|