fix: don't try to load a langauge if there's none provided
(cherry picked from commit 210a78be86385b2d57a65563082e60bd11965217)
This commit is contained in:
parent
c1978e2f6c
commit
ba20ac3b89
@ -30,6 +30,10 @@ const setI18nLanguage = lang => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const loadLanguageAsync = lang => {
|
export const loadLanguageAsync = lang => {
|
||||||
|
if(!lang) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
// If the same language
|
// If the same language
|
||||||
i18n.global.locale === lang ||
|
i18n.global.locale === lang ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user