@mapcatch/util 2.1.0-beta.2 → 2.1.0-beta.3
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/README.md +44 -0
- package/dist/catchUtil.min.cjs.js +2 -2
- package/dist/catchUtil.min.esm.js +5 -4
- package/dist/catchUtil.min.js +2 -2
- package/package.json +1 -1
|
@@ -10181,7 +10181,7 @@ const momentLang = {
|
|
|
10181
10181
|
};
|
|
10182
10182
|
let i18nInstance = instance, t = instance.t;
|
|
10183
10183
|
createI18nInstance().then((e) => {
|
|
10184
|
-
i18nInstance = e, t = i18nInstance.instance.t;
|
|
10184
|
+
e.type || (i18nInstance = e, t = i18nInstance.instance.t);
|
|
10185
10185
|
});
|
|
10186
10186
|
function setI18nInstance(e, r) {
|
|
10187
10187
|
i18nInstance = {
|
|
@@ -10211,11 +10211,12 @@ async function createI18nInstance() {
|
|
|
10211
10211
|
};
|
|
10212
10212
|
}
|
|
10213
10213
|
function setLocale(e) {
|
|
10214
|
-
i18nInstance.type === "i18next" ? instance.changeLanguage(e) : i18nInstance.type === "vue-i18n" && (i18nInstance.instance.global.locale.value = e), hooks.locale(momentLang[e]);
|
|
10214
|
+
console.warn(e, "locale"), i18nInstance.type === "i18next" ? instance.changeLanguage(e) : i18nInstance.type === "vue-i18n" && (i18nInstance.instance.global.locale.value = e), hooks.locale(momentLang[e]);
|
|
10215
10215
|
}
|
|
10216
10216
|
const i18n = {
|
|
10217
10217
|
get t() {
|
|
10218
|
-
|
|
10218
|
+
let e = "";
|
|
10219
|
+
return i18nInstance.type === "i18next" ? e = instance.language : i18nInstance.type === "vue-i18n" && (e = i18nInstance.instance.global.locale.value), console.warn(e, "currentLocale"), t;
|
|
10219
10220
|
},
|
|
10220
10221
|
setI18nInstance,
|
|
10221
10222
|
getI18nInstance,
|
|
@@ -61206,7 +61207,7 @@ function getAnnotationFeature(e) {
|
|
|
61206
61207
|
function getAnnotationName(e, r) {
|
|
61207
61208
|
let s = [];
|
|
61208
61209
|
const u = i18n.t(`annotation.${r}`);
|
|
61209
|
-
e.forEach((m) => {
|
|
61210
|
+
console.warn(u, "annotation"), e.forEach((m) => {
|
|
61210
61211
|
if (m.name === u) {
|
|
61211
61212
|
s.push(0);
|
|
61212
61213
|
return;
|