fix: "TypeError: i18n.setLocaleMessage is not a function" when changing languages
This commit is contained in:
parent
f884020c55
commit
74d785d606
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ export const loadLanguageAsync = lang => {
|
|||
// If the language hasn't been loaded yet
|
||||
return import(`./lang/${lang}.json`).then(
|
||||
messages => {
|
||||
i18n.setLocaleMessage(lang, messages.default)
|
||||
i18n.global.setLocaleMessage(lang, messages.default)
|
||||
loadedLanguages.push(lang)
|
||||
return setI18nLanguage(lang)
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue