chore(copy): rename consumer label to 客户
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.
This commit is contained in:
@@ -123,7 +123,7 @@ export default function SettingsPage() {
|
||||
<div className="flex items-center justify-between">
|
||||
<div className="flex items-center space-x-2">
|
||||
<RadioGroupItem value="consumer" id="role-consumer" />
|
||||
<Label htmlFor="role-consumer">消费者</Label>
|
||||
<Label htmlFor="role-consumer">客户</Label>
|
||||
</div>
|
||||
</div>
|
||||
<div className="flex items-center justify-between">
|
||||
|
||||
@@ -101,7 +101,7 @@ function OrderListContent({ currentRole, userId }: { currentRole: UserRole; user
|
||||
<h1 className="text-2xl font-bold">我的订单</h1>
|
||||
<Badge variant="outline" className="text-xs">
|
||||
{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}`}
|
||||
</p>
|
||||
</CardHeader>
|
||||
<CardContent>
|
||||
|
||||
@@ -36,7 +36,7 @@ import { useNotificationStore } from "@/store/notifications"
|
||||
import { useShopStore } from "@/store/shops"
|
||||
|
||||
const roleLabels: Record<UserRole, string> = {
|
||||
consumer: "消费者",
|
||||
consumer: "客户",
|
||||
player: "打手",
|
||||
owner: "店主",
|
||||
}
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ export const statusLabels: Record<OrderStatus, string> = {
|
||||
}
|
||||
|
||||
export const roleLabels: Record<string, string> = {
|
||||
consumer: "消费者",
|
||||
consumer: "客户",
|
||||
player: "打手",
|
||||
owner: "店主",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user