isdata-customer-sdk 0.2.12 → 0.2.13

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
@@ -29594,6 +29594,7 @@ __webpack_require__.d(__webpack_exports__, {
29594
29594
  getDifyFileType: function() { return /* reexport */ getDifyFileType; },
29595
29595
  getFileSize: function() { return /* reexport */ getFileSize; },
29596
29596
  getGroupMappingsByAccount: function() { return /* reexport */ getGroupMappingsByAccount; },
29597
+ getI18nKey: function() { return /* reexport */ getI18nKey; },
29597
29598
  getIMHanlder: function() { return /* reexport */ getIMHanlder; },
29598
29599
  getIntegrateAppInfoByID: function() { return /* reexport */ getIntegrateAppInfoByID; },
29599
29600
  getKey: function() { return /* reexport */ getKey; },
@@ -32535,6 +32536,15 @@ const getFileSize = async url => {
32535
32536
  return -1; // 返回-1表示失败
32536
32537
  }
32537
32538
  };
32539
+ // 获取i18n key
32540
+ const getI18nKey = text => {
32541
+ // 正则表达式匹配 $L{...} 格式
32542
+ const regex = /\$L\{([^}]+)\}/g;
32543
+ let match = regex.exec(text);
32544
+ if (!match) return text;
32545
+ let key = match[1];
32546
+ return key;
32547
+ };
32538
32548
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.some.js
32539
32549
  var es_iterator_some = __webpack_require__(3579);
32540
32550
  ;// ./src/api/iframe.js