isdata-customer-sdk 0.1.97 → 0.1.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.common.js
CHANGED
|
@@ -33334,7 +33334,8 @@ const initDomNodeI18NObserver = () => {
|
|
|
33334
33334
|
} else {
|
|
33335
33335
|
window.i18nElementsMap.clear();
|
|
33336
33336
|
}
|
|
33337
|
-
registerEventListener("IPORTAL_LANGUAGE_CHANGE_EVENT", async
|
|
33337
|
+
registerEventListener("IPORTAL_LANGUAGE_CHANGE_EVENT", async data => {
|
|
33338
|
+
const lang = data.lang;
|
|
33338
33339
|
console.log("语言切换事件触发,更新已处理元素的翻译:", lang);
|
|
33339
33340
|
// 遍历Map,更新每个已处理元素的翻译
|
|
33340
33341
|
for (const [elementId, item] of window.i18nElementsMap.entries()) {
|