From 94c7397114ddff66dcc71ff43c0a55da9302c880 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=8B=E6=A8=8A=E9=81=93=E4=BA=BA?= Date: Fri, 1 Aug 2025 15:40:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BB=E5=AF=BC=E8=88=AA=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E6=B1=89=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../layout/main-layout/main-layout.tsx | 20 ++++++++++--------- vendor-panel/src/i18n/translations/zhCN.json | 6 +++++- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/vendor-panel/src/components/layout/main-layout/main-layout.tsx b/vendor-panel/src/components/layout/main-layout/main-layout.tsx index 6cb5071..0d6f63a 100644 --- a/vendor-panel/src/components/layout/main-layout/main-layout.tsx +++ b/vendor-panel/src/components/layout/main-layout/main-layout.tsx @@ -105,7 +105,7 @@ const useCoreRoutes = (): Omit[] => { return [ { icon: , - label: "Dashboard", + label: t("common.dashboard"), to: "/dashboard", }, { @@ -180,33 +180,33 @@ const useCoreRoutes = (): Omit[] => { }, { icon: , - label: "Reviews", + label: t("common.reviews"), to: "/reviews", }, { icon: , - label: `Messages ${unreadMessages?.length && unreadMessages?.length > 0 ? `(${unreadMessages?.length})` : ""}`, + label: `${t("common.messages")} ${unreadMessages?.length && unreadMessages?.length > 0 ? `(${unreadMessages?.length})` : ""}`, to: "/messages", }, { icon: , - label: "Requests", + label: t("common.requests"), to: "/requests", items: [ { - label: "Collections", + label: t("collections.domain"), to: "/requests/collections", }, { - label: "Categories", + label: t("categories.domain"), to: "/requests/categories", }, { - label: "Reviews", + label: t("common.reviews"), to: "/requests/reviews", }, { - label: "Orders returns", + label: t("common.ordersReturns"), to: "/requests/orders", }, ], @@ -215,10 +215,12 @@ const useCoreRoutes = (): Omit[] => { } const useExtensionRoutes = (): Omit[] => { + const { t } = useTranslation() + return [ { icon: , - label: "Stripe Connect", + label: t("common.stripeConnect"), to: "/stripe-connect", }, ] diff --git a/vendor-panel/src/i18n/translations/zhCN.json b/vendor-panel/src/i18n/translations/zhCN.json index c2ade20..c9bd067 100644 --- a/vendor-panel/src/i18n/translations/zhCN.json +++ b/vendor-panel/src/i18n/translations/zhCN.json @@ -3001,7 +3001,11 @@ "country": "国家", "taxId": "税号", "type": "类型", - "seller": "卖家" + "seller": "卖家", + "dashboard": "仪表板", + "messages": "消息", + "requests": "请求", + "reviews": "评论" }, "placeholders": { "companyName": "公司名称",