Browse Source

Merge pull request #6758 from nocodb/fix/i18n-switch-bug

Fixed i18n fallback locale not loading issue
pull/6772/head
Raju Udava 1 year ago committed by GitHub
parent
commit
d6b6592d25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      packages/nc-gui/plugins/state.ts

2
packages/nc-gui/plugins/state.ts

@ -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)

Loading…
Cancel
Save