isdata-customer-sdk 0.2.40 → 0.2.42
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
|
@@ -40366,6 +40366,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
40366
40366
|
switchPortalLogin: function() { return /* reexport */ switchPortalLogin; },
|
|
40367
40367
|
transformPortalQuickMenuDatas: function() { return /* reexport */ transformPortalQuickMenuDatas; },
|
|
40368
40368
|
transformPortalSystemMenuDatas: function() { return /* reexport */ transformPortalSystemMenuDatas; },
|
|
40369
|
+
updateI18nValue: function() { return /* reexport */ updateI18nValue; },
|
|
40369
40370
|
updateIMMapping: function() { return /* reexport */ updateIMMapping; },
|
|
40370
40371
|
updateUserSelectPortal: function() { return /* reexport */ updateUserSelectPortal; },
|
|
40371
40372
|
validateSSOPageLoaded: function() { return /* reexport */ validateSSOPageLoaded; }
|
|
@@ -41685,14 +41686,16 @@ const getIntegrateAppInfoByID = async appID => {
|
|
|
41685
41686
|
};
|
|
41686
41687
|
|
|
41687
41688
|
// 更新服务器i18n文本
|
|
41688
|
-
const savePortalI18nText = async (key, value, lang) => {
|
|
41689
|
+
const savePortalI18nText = async (key, value, lang, beyondID, i18nType) => {
|
|
41689
41690
|
let app_id = getPoratlAppID();
|
|
41690
41691
|
let requestData = {
|
|
41691
41692
|
param: {
|
|
41692
41693
|
key: key,
|
|
41693
41694
|
value: value,
|
|
41694
41695
|
appID: app_id,
|
|
41695
|
-
lang: lang
|
|
41696
|
+
lang: lang,
|
|
41697
|
+
beyondID: beyondID,
|
|
41698
|
+
i18nType: i18nType
|
|
41696
41699
|
}
|
|
41697
41700
|
};
|
|
41698
41701
|
let result = await request.post(`/dataservice/rest/orchestration/savePortalI18nText`, requestData);
|
|
@@ -43996,6 +43999,10 @@ const getLanguages = async appID => {
|
|
|
43996
43999
|
let resultDatas = response.data.resultDatas || [];
|
|
43997
44000
|
return resultDatas;
|
|
43998
44001
|
};
|
|
44002
|
+
const updateI18nValue = (appID, key, localID, value) => {
|
|
44003
|
+
let realKey = `${appID}-${key}-${localID}`;
|
|
44004
|
+
window.customI18nObject.set(realKey, value);
|
|
44005
|
+
};
|
|
43999
44006
|
const i18n = (key, appID, localID) => {
|
|
44000
44007
|
let result = window.customI18nObject?.get(`${appID}-${key}-${localID}`) || key;
|
|
44001
44008
|
return result;
|