Merge pull request #146 in YR/star-web-components from fixbug_l10n to master
* commit '64c022eba2c551cb19ca418d67ed1fd6bfd43ad2': 修复L10n加载语言资源的同时会更改首选语言的bug
This commit is contained in:
commit
82bf025678
|
@ -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