Merge pull request #195 in YR/star-web-components from l10n to master

* commit 'c6be7588f5933efdd129dbd05536539329c1054b':
  变更组件的语言变更监听事件
This commit is contained in:
汪昌棋 2022-12-08 15:40:36 +08:00
commit 0a0613af9c
1 changed files with 2 additions and 2 deletions

View File

@ -40,8 +40,8 @@ class L10nHelper {
}
this.l10n = l10n
/* 变更语言时, 刷新组件 */
window.addEventListener('languagechange', () => {
/* 语言资源准备完毕, 刷新组件 */
window.addEventListener('localized', () => {
this.updateArray.forEach((element) => element.requestUpdate())
})