Merge pull request #195 in YR/star-web-components from l10n to master
* commit 'c6be7588f5933efdd129dbd05536539329c1054b': 变更组件的语言变更监听事件
This commit is contained in:
commit
0a0613af9c
|
@ -40,8 +40,8 @@ class L10nHelper {
|
|||
}
|
||||
this.l10n = l10n
|
||||
|
||||
/* 变更语言时, 刷新组件 */
|
||||
window.addEventListener('languagechange', () => {
|
||||
/* 语言资源准备完毕, 刷新组件 */
|
||||
window.addEventListener('localized', () => {
|
||||
this.updateArray.forEach((element) => element.requestUpdate())
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue