isdata-customer-sdk 0.2.41 → 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.umd.js
CHANGED
|
@@ -40384,6 +40384,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
40384
40384
|
switchPortalLogin: function() { return /* reexport */ switchPortalLogin; },
|
|
40385
40385
|
transformPortalQuickMenuDatas: function() { return /* reexport */ transformPortalQuickMenuDatas; },
|
|
40386
40386
|
transformPortalSystemMenuDatas: function() { return /* reexport */ transformPortalSystemMenuDatas; },
|
|
40387
|
+
updateI18nValue: function() { return /* reexport */ updateI18nValue; },
|
|
40387
40388
|
updateIMMapping: function() { return /* reexport */ updateIMMapping; },
|
|
40388
40389
|
updateUserSelectPortal: function() { return /* reexport */ updateUserSelectPortal; },
|
|
40389
40390
|
validateSSOPageLoaded: function() { return /* reexport */ validateSSOPageLoaded; }
|
|
@@ -44016,6 +44017,10 @@ const getLanguages = async appID => {
|
|
|
44016
44017
|
let resultDatas = response.data.resultDatas || [];
|
|
44017
44018
|
return resultDatas;
|
|
44018
44019
|
};
|
|
44020
|
+
const updateI18nValue = (appID, key, localID, value) => {
|
|
44021
|
+
let realKey = `${appID}-${key}-${localID}`;
|
|
44022
|
+
window.customI18nObject.set(realKey, value);
|
|
44023
|
+
};
|
|
44019
44024
|
const i18n = (key, appID, localID) => {
|
|
44020
44025
|
let result = window.customI18nObject?.get(`${appID}-${key}-${localID}`) || key;
|
|
44021
44026
|
return result;
|