From d0d21fa93559ca392b00eddcd574b8a39c17d637 Mon Sep 17 00:00:00 2001 From: zetaloop Date: Sun, 22 Feb 2026 10:34:55 +0800 Subject: [PATCH] =?UTF-8?q?chore(copy):=20rename=20consumer=20label=20to?= =?UTF-8?q?=20=E5=AE=A2=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Unify user-facing role terminology by replacing 消费者 with 客户 while keeping role keys unchanged. This aligns account settings, header role switch, global role labels, and order list role text. --- app/(account)/settings/page.tsx | 2 +- app/(order)/orders/page.tsx | 6 +++--- components/header.tsx | 2 +- lib/constants.ts | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/(account)/settings/page.tsx b/app/(account)/settings/page.tsx index 8aec803..293f74a 100644 --- a/app/(account)/settings/page.tsx +++ b/app/(account)/settings/page.tsx @@ -123,7 +123,7 @@ export default function SettingsPage() {
- +
diff --git a/app/(order)/orders/page.tsx b/app/(order)/orders/page.tsx index 41cb0bd..fffa06e 100644 --- a/app/(order)/orders/page.tsx +++ b/app/(order)/orders/page.tsx @@ -101,7 +101,7 @@ function OrderListContent({ currentRole, userId }: { currentRole: UserRole; user

我的订单

{currentRole === "consumer" - ? "消费者视角" + ? "客户视角" : currentRole === "player" ? "打手视角" : "店主视角"} @@ -134,8 +134,8 @@ function OrderListContent({ currentRole, userId }: { currentRole: UserRole; user {currentRole === "consumer" ? `打手: ${order.playerName}` : currentRole === "player" - ? `消费者: ${order.consumerName}` - : `消费者: ${order.consumerName} · 打手: ${order.playerName}`} + ? `客户: ${order.consumerName}` + : `客户: ${order.consumerName} · 打手: ${order.playerName}`}

diff --git a/components/header.tsx b/components/header.tsx index 61f6c56..524dc2a 100644 --- a/components/header.tsx +++ b/components/header.tsx @@ -36,7 +36,7 @@ import { useNotificationStore } from "@/store/notifications" import { useShopStore } from "@/store/shops" const roleLabels: Record = { - consumer: "消费者", + consumer: "客户", player: "打手", owner: "店主", } diff --git a/lib/constants.ts b/lib/constants.ts index 2bf204e..4882430 100644 --- a/lib/constants.ts +++ b/lib/constants.ts @@ -12,7 +12,7 @@ export const statusLabels: Record = { } export const roleLabels: Record = { - consumer: "消费者", + consumer: "客户", player: "打手", owner: "店主", }