修复L10n加载语言资源的同时会更改首选语言的bug
This commit is contained in:
parent
1504d2a1df
commit
64c022eba2
|
@ -64,7 +64,10 @@ class L10nHelper {
|
|||
}
|
||||
})
|
||||
|
||||
shouldRequest.length && this.l10n.ctx.requestLocales(...shouldRequest)
|
||||
for (const lang of shouldRequest) {
|
||||
const locale = this.l10n.ctx.getLocale(lang)
|
||||
locale.build()
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue