主导航菜单汉化
This commit is contained in:
@@ -105,7 +105,7 @@ const useCoreRoutes = (): Omit<INavItem, "pathname">[] => {
|
|||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
icon: <Component />,
|
icon: <Component />,
|
||||||
label: "Dashboard",
|
label: t("common.dashboard"),
|
||||||
to: "/dashboard",
|
to: "/dashboard",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -180,33 +180,33 @@ const useCoreRoutes = (): Omit<INavItem, "pathname">[] => {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: <Star />,
|
icon: <Star />,
|
||||||
label: "Reviews",
|
label: t("common.reviews"),
|
||||||
to: "/reviews",
|
to: "/reviews",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: <ChatBubbleLeftRight />,
|
icon: <ChatBubbleLeftRight />,
|
||||||
label: `Messages ${unreadMessages?.length && unreadMessages?.length > 0 ? `(${unreadMessages?.length})` : ""}`,
|
label: `${t("common.messages")} ${unreadMessages?.length && unreadMessages?.length > 0 ? `(${unreadMessages?.length})` : ""}`,
|
||||||
to: "/messages",
|
to: "/messages",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: <ListCheckbox />,
|
icon: <ListCheckbox />,
|
||||||
label: "Requests",
|
label: t("common.requests"),
|
||||||
to: "/requests",
|
to: "/requests",
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
label: "Collections",
|
label: t("collections.domain"),
|
||||||
to: "/requests/collections",
|
to: "/requests/collections",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "Categories",
|
label: t("categories.domain"),
|
||||||
to: "/requests/categories",
|
to: "/requests/categories",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "Reviews",
|
label: t("common.reviews"),
|
||||||
to: "/requests/reviews",
|
to: "/requests/reviews",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "Orders returns",
|
label: t("common.ordersReturns"),
|
||||||
to: "/requests/orders",
|
to: "/requests/orders",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
@@ -215,10 +215,12 @@ const useCoreRoutes = (): Omit<INavItem, "pathname">[] => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const useExtensionRoutes = (): Omit<INavItem, "pathname">[] => {
|
const useExtensionRoutes = (): Omit<INavItem, "pathname">[] => {
|
||||||
|
const { t } = useTranslation()
|
||||||
|
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
icon: <StripeIcon />,
|
icon: <StripeIcon />,
|
||||||
label: "Stripe Connect",
|
label: t("common.stripeConnect"),
|
||||||
to: "/stripe-connect",
|
to: "/stripe-connect",
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -3001,7 +3001,11 @@
|
|||||||
"country": "国家",
|
"country": "国家",
|
||||||
"taxId": "税号",
|
"taxId": "税号",
|
||||||
"type": "类型",
|
"type": "类型",
|
||||||
"seller": "卖家"
|
"seller": "卖家",
|
||||||
|
"dashboard": "仪表板",
|
||||||
|
"messages": "消息",
|
||||||
|
"requests": "请求",
|
||||||
|
"reviews": "评论"
|
||||||
},
|
},
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"companyName": "公司名称",
|
"companyName": "公司名称",
|
||||||
|
|||||||
Reference in New Issue
Block a user