lw-cdp-ui 1.0.30 → 1.0.31
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/lw-cdp-ui.esm.js
CHANGED
|
@@ -6770,13 +6770,12 @@ function _sfc_render(o, s, r, y, c, f) {
|
|
|
6770
6770
|
}
|
|
6771
6771
|
const lwTableSelect = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-de5daf35"]]);
|
|
6772
6772
|
let langJson = localStorage.getItem("langMessageUi"), lang = JSON.parse(langJson) || {}, messages = { ...lang };
|
|
6773
|
-
const loadLocaleMessages = () => {
|
|
6774
|
-
const o
|
|
6775
|
-
|
|
6776
|
-
|
|
6777
|
-
|
|
6778
|
-
|
|
6779
|
-
messages[y] || (messages[y] = {}), Object.assign(messages[y], o[s].default);
|
|
6773
|
+
const locales = import.meta.globEager("../components/**/locale/*.js"), loadLocaleMessages = () => {
|
|
6774
|
+
for (const o in locales) {
|
|
6775
|
+
const s = o.match(/locale\/([a-z-]+)\.(js|ts)$/i);
|
|
6776
|
+
if (s && s[1]) {
|
|
6777
|
+
const r = s[1].toLowerCase();
|
|
6778
|
+
messages[r] || (messages[r] = {}), Object.assign(messages[r], locales[o].default);
|
|
6780
6779
|
}
|
|
6781
6780
|
}
|
|
6782
6781
|
return localStorage.setItem("langMessageUi", JSON.stringify(messages)), messages;
|