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.umd.js CHANGED
@@ -33344,7 +33344,8 @@ const initDomNodeI18NObserver = () => {
33344
33344
  } else {
33345
33345
  window.i18nElementsMap.clear();
33346
33346
  }
33347
- registerEventListener("IPORTAL_LANGUAGE_CHANGE_EVENT", async lang => {
33347
+ registerEventListener("IPORTAL_LANGUAGE_CHANGE_EVENT", async data => {
33348
+ const lang = data.lang;
33348
33349
  console.log("语言切换事件触发,更新已处理元素的翻译:", lang);
33349
33350
  // 遍历Map,更新每个已处理元素的翻译
33350
33351
  for (const [elementId, item] of window.i18nElementsMap.entries()) {