Skip to content

Commit 732c57d

Browse files
os-zhuangclaude
andauthored
fix(app-showcase): complete field translations so list columns don't mix locales (#2053)
The translation bundle covered only a handful of fields, so columns like Project / Assignee / Progress / Estimate fell back to their English field label and sat next to the translated 状态 / 优先级 / 截止日期 on a zh-CN session — an obvious inconsistency. Extends en + zh-CN to every field surfaced as a column on the showcase pages (task + project). Verified: the Task Triage header now reads 标题 / 项目 / 负责人 / 状态 / 优先级 / 截止日期 / 进度 — fully consistent, no Latin fallback. Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 82e46c2 commit 732c57d

1 file changed

Lines changed: 36 additions & 1 deletion

File tree

  • examples/app-showcase/src/translations

examples/app-showcase/src/translations/index.ts

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
// Copyright (c) 2025 ObjectStack. Licensed under the Apache-2.0 license.
22

3-
/** English + Simplified Chinese labels for the core showcase objects. */
3+
/**
4+
* English + Simplified Chinese labels for the core showcase objects.
5+
*
6+
* Covers EVERY field surfaced as a column on the showcase pages so a list never
7+
* mixes locales (the prior bundle translated only a handful, leaving columns
8+
* like Project / Assignee / Progress falling back to their English field label
9+
* next to translated 状态 / 优先级 — an obvious inconsistency on a zh-CN session).
10+
*/
411
export const ShowcaseTranslationBundle = {
512
en: {
613
objects: {
@@ -10,18 +17,32 @@ export const ShowcaseTranslationBundle = {
1017
fields: {
1118
name: { label: 'Project Name' },
1219
account: { label: 'Account' },
20+
owner: { label: 'Owner' },
1321
status: { label: 'Status' },
22+
health: { label: 'Health' },
1423
budget: { label: 'Budget' },
24+
spent: { label: 'Spent' },
25+
start_date: { label: 'Start Date' },
26+
end_date: { label: 'End Date' },
1527
},
1628
},
1729
showcase_task: {
1830
label: 'Task',
1931
pluralLabel: 'Tasks',
2032
fields: {
2133
title: { label: 'Title' },
34+
project: { label: 'Project' },
35+
assignee: { label: 'Assignee' },
2236
status: { label: 'Status' },
2337
priority: { label: 'Priority' },
2438
due_date: { label: 'Due Date' },
39+
progress: { label: 'Progress' },
40+
estimate_hours: { label: 'Estimate (h)' },
41+
start_date: { label: 'Start Date' },
42+
end_date: { label: 'End Date' },
43+
created_at: { label: 'Created' },
44+
location: { label: 'Work Location' },
45+
cover: { label: 'Cover' },
2546
},
2647
},
2748
},
@@ -34,18 +55,32 @@ export const ShowcaseTranslationBundle = {
3455
fields: {
3556
name: { label: '项目名称' },
3657
account: { label: '客户' },
58+
owner: { label: '负责人' },
3759
status: { label: '状态' },
60+
health: { label: '健康度' },
3861
budget: { label: '预算' },
62+
spent: { label: '已花费' },
63+
start_date: { label: '开始日期' },
64+
end_date: { label: '结束日期' },
3965
},
4066
},
4167
showcase_task: {
4268
label: '任务',
4369
pluralLabel: '任务',
4470
fields: {
4571
title: { label: '标题' },
72+
project: { label: '项目' },
73+
assignee: { label: '负责人' },
4674
status: { label: '状态' },
4775
priority: { label: '优先级' },
4876
due_date: { label: '截止日期' },
77+
progress: { label: '进度' },
78+
estimate_hours: { label: '预计工时' },
79+
start_date: { label: '开始日期' },
80+
end_date: { label: '结束日期' },
81+
created_at: { label: '创建时间' },
82+
location: { label: '工作地点' },
83+
cover: { label: '封面' },
4984
},
5085
},
5186
},

0 commit comments

Comments
 (0)