修复L10n加载语言资源的同时会更改首选语言的bug

This commit is contained in:
luojiahao 2022-11-15 09:12:02 +08:00
parent 1504d2a1df
commit 64c022eba2
1 changed files with 4 additions and 1 deletions

View File

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