isdata-customer-sdk 0.1.94 → 0.1.95

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.
@@ -29578,6 +29578,7 @@ __webpack_require__.d(__webpack_exports__, {
29578
29578
  getIMHanlder: function() { return /* reexport */ getIMHanlder; },
29579
29579
  getIntegrateAppInfoByID: function() { return /* reexport */ getIntegrateAppInfoByID; },
29580
29580
  getKey: function() { return /* reexport */ getKey; },
29581
+ getLanguages: function() { return /* reexport */ getLanguages; },
29581
29582
  getLoginPageNotices: function() { return /* reexport */ getLoginPageNotices; },
29582
29583
  getLoginPortalAccountKey: function() { return /* reexport */ getLoginPortalAccountKey; },
29583
29584
  getMappingAppInfoByID: function() { return /* reexport */ getMappingAppInfoByID; },
@@ -29603,8 +29604,10 @@ __webpack_require__.d(__webpack_exports__, {
29603
29604
  getUserAllMappngPortal: function() { return /* reexport */ getUserAllMappngPortal; },
29604
29605
  getUserID: function() { return /* reexport */ getUserID; },
29605
29606
  hasListener: function() { return /* reexport */ hasListener; },
29607
+ i18n: function() { return /* reexport */ i18n; },
29606
29608
  initEventCenter: function() { return /* reexport */ initEventCenter; },
29607
29609
  initFrameWindowListener: function() { return /* reexport */ initFrameWindowListener; },
29610
+ loadi18nTexts: function() { return /* reexport */ loadi18nTexts; },
29608
29611
  loginAccount: function() { return /* reexport */ loginAccount; },
29609
29612
  logoutAccount: function() { return /* reexport */ logoutAccount; },
29610
29613
  queryAndStoreAppVariable: function() { return /* reexport */ queryAndStoreAppVariable; },
@@ -33082,6 +33085,35 @@ const dify_extractFilenameFromUrl = url => {
33082
33085
  return "downloaded_file"; // URL 解析失败时的默认文件名
33083
33086
  }
33084
33087
  };
33088
+ ;// ./src/api/i18n.js
33089
+
33090
+ const getLanguages = async appID => {
33091
+ let queryData = {
33092
+ param: {
33093
+ appID: appID
33094
+ }
33095
+ };
33096
+ let response = await request.post(`/dataservice/rest/orchestration/getAppLanguages`, queryData);
33097
+ let resultDatas = response.data.resultDatas || [];
33098
+ return resultDatas;
33099
+ };
33100
+ const i18n = (key, appID, localID) => {
33101
+ let result = window.customI18nObject?.get(`${appID}-${key}-${localID}`) || key;
33102
+ return result;
33103
+ };
33104
+ const loadi18nTexts = async appID => {
33105
+ let queryData = {
33106
+ param: {
33107
+ appID: appID
33108
+ }
33109
+ };
33110
+ let response = await request.post(`/dataservice/rest/orchestration/getAllTexts`, queryData);
33111
+ let resultDatas = response.data.resultDatas || [];
33112
+ window.customI18nObject = new Map();
33113
+ for (let item of resultDatas) {
33114
+ window.customI18nObject.set(`${appID}-${item.key}-${item.lang}`, item.value);
33115
+ }
33116
+ };
33085
33117
  ;// ./src/main.js
33086
33118
 
33087
33119
 
@@ -33090,6 +33122,7 @@ const dify_extractFilenameFromUrl = url => {
33090
33122
 
33091
33123
 
33092
33124
 
33125
+
33093
33126
  ;// ./node_modules/@vue/cli-service/lib/commands/build/entry-lib-no-default.js
33094
33127
 
33095
33128