adata-ui 3.1.77 → 3.1.78
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/module.json
CHANGED
|
@@ -9,7 +9,7 @@ import Yuan from "#icons/currency/yuan.vue";
|
|
|
9
9
|
import XMark from "#icons/x-mark.vue";
|
|
10
10
|
import Down from "#icons/currency/down.vue";
|
|
11
11
|
import { useI18n, useAppConfig } from "#imports";
|
|
12
|
-
const { t } = useI18n();
|
|
12
|
+
const { t, locale } = useI18n();
|
|
13
13
|
const props = defineProps({
|
|
14
14
|
daysRemaining: { type: Number, required: true },
|
|
15
15
|
limitRemaining: { type: Number, required: true },
|
|
@@ -55,7 +55,17 @@ const fetchNotification = async () => {
|
|
|
55
55
|
const response = await fetch(link);
|
|
56
56
|
const { data } = await response.json();
|
|
57
57
|
if (data.details.length) {
|
|
58
|
-
|
|
58
|
+
switch (locale.value) {
|
|
59
|
+
case "ru":
|
|
60
|
+
systemMessage.value = data.details[0].message;
|
|
61
|
+
break;
|
|
62
|
+
case "en":
|
|
63
|
+
systemMessage.value = data.details[0].message_en;
|
|
64
|
+
break;
|
|
65
|
+
case "kk":
|
|
66
|
+
systemMessage.value = data.details[0].message_kz;
|
|
67
|
+
break;
|
|
68
|
+
}
|
|
59
69
|
isOpenNotification.value = true;
|
|
60
70
|
}
|
|
61
71
|
}
|