diff --git a/src/locales/zh-CN.json b/src/locales/zh-CN.json
index 64b5340..7826cd0 100644
--- a/src/locales/zh-CN.json
+++ b/src/locales/zh-CN.json
@@ -147,6 +147,13 @@
"support": "支持主流银行快速充值提现"
}
},
+ "notify": {
+ "title": "通知",
+ "detail": "详情",
+ "markAllRead": "全部已读",
+ "markAllReadSuccess": "全部已读",
+ "loading": "加载中..."
+ },
"trade": {
"title": "交易",
"spot": "现货",
diff --git a/src/views/notify/detail.vue b/src/views/notify/detail.vue
index 724919a..171b75b 100644
--- a/src/views/notify/detail.vue
+++ b/src/views/notify/detail.vue
@@ -3,7 +3,7 @@ import { client, safeClient } from "@/api";
import { NotificationTypeIcon } from "./enum";
const props = defineProps<{ id: string }>();
-
+const { t } = useI18n();
const { data } = await safeClient(client.api.notifications({ id: props.id }).get());
function getConfigByType(type: string) {
@@ -16,7 +16,7 @@ function getConfigByType(type: string) {
- 通知详情
+ {{ t('notify.detail') }}
diff --git a/src/views/notify/index.vue b/src/views/notify/index.vue
index 92661f0..6e4ef67 100644
--- a/src/views/notify/index.vue
+++ b/src/views/notify/index.vue
@@ -8,6 +8,7 @@ import MaterialSymbolsAndroidContacts from "~icons/material-symbols/android-cont
import { client, safeClient } from "@/api";
import { NotificationTypeIcon } from "./enum";
+const { t } = useI18n();
const router = useRouter();
const [query] = useResetRef({
limit: 20,
@@ -58,7 +59,7 @@ async function handleAllRead() {
ids: [],
}));
const toast = await toastController.create({
- message: "所有通知已标记为已读",
+ message: t("notify.markAllReadSuccess"),
duration: 2000,
position: "bottom",
color: "success",
@@ -87,7 +88,7 @@ onBeforeMount(() => {
- 通知
+ {{ t('notify.title') }}
@@ -127,7 +128,7 @@ onBeforeMount(() => {