Skip to content

Commit e3d1e85

Browse files
committed
i18n(showcase): 翻译 walker 新采出的 10 个段落标题 (#5405)
`check:i18n-coverage`(仓库级棘轮门)在 CI 抓到 showcase 未译声明串 451 → 461:新增的 `section` kind 把段落标题纳入覆盖面后,showcase 声明支持 zh-CN 却没有这些译文。门要的是译文,不是豁免 —— 基线与 `supportedLocales` 均未改动。 zh-CN 新增 10 条,均为既有体例: showcase_task._sections —— task.view.ts 三个表单投影的段落名 overview 概览 / schedule 排期 / details 详细信息 step_basics 基本信息 / step_assign 指派 / step_schedule 排期 split_task 任务 / split_schedule 排期 showcase_semantic_zoo._sections —— ADR-0085 fixture 的两个 fieldGroups basics 基本信息 / money 财务信息 后者按 `showcase_inquiry` / `showcase_business_unit` 的先例,只加 `_sections` 块(该对象本无 zh-CN 块,其余债务留在冻结基线内)。 `money` 取「财务信息」以贴合分组自己的 description(Financial fields),而非直译 Money。 `en` 不加条目:默认语言由内联 label 满足,复述源串只会伪造覆盖率。 check-i18n-coverage: OK (12 config(s), 660 baselined untranslated string(s), none new) —— showcase 精确回到 451,零 missing-section。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016FNvXhtSdnEGEfLEsMmvxh
1 parent e0c2890 commit e3d1e85

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

  • examples/app-showcase/src/system/translations

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

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,27 @@ export const ShowcaseTranslationBundle = {
251251
successMessage: '已为整个选中集重算工时。',
252252
},
253253
},
254+
// Section headings of the four form-view projections in
255+
// `ui/views/task.view.ts` (tabbed / wizard / split). Each section
256+
// there declares a stable `name`, which is the only thing that makes
257+
// the heading translatable — `ObjectForm` looks it up as
258+
// `objects.showcase_task._sections.<name>.label` and otherwise renders
259+
// the English `label` verbatim. Wording follows the vocabulary the
260+
// rest of this bundle already uses (任务 / 负责人 / 进度), rather than
261+
// introducing a second word per idea.
262+
_sections: {
263+
// tabbed
264+
overview: { label: '概览' },
265+
schedule: { label: '排期' },
266+
details: { label: '详细信息' },
267+
// wizard steps
268+
step_basics: { label: '基本信息' },
269+
step_assign: { label: '指派' },
270+
step_schedule: { label: '排期' },
271+
// split panes
272+
split_task: { label: '任务' },
273+
split_schedule: { label: '排期' },
274+
},
254275
},
255276
showcase_account: {
256277
label: '客户',
@@ -343,6 +364,19 @@ export const ShowcaseTranslationBundle = {
343364
org_chart: { label: '组织架构图' },
344365
},
345366
},
367+
// `_sections` only, on the same footing as the two `_views`-only blocks
368+
// above: this ADR-0085 fixture has no zh-CN block of its own and its
369+
// object/field debt sits inside the ratchet's baseline. Its two
370+
// `fieldGroups` headings are what the coverage walker newly surfaces
371+
// (#5405), and translating exactly those is what keeps the gate from
372+
// widening; the rest is left exactly as it was. `财务信息` follows the
373+
// group's own description ("Financial fields"), not the bare word Money.
374+
showcase_semantic_zoo: {
375+
_sections: {
376+
basics: { label: '基本信息' },
377+
money: { label: '财务信息' },
378+
},
379+
},
346380
showcase_field_zoo: {
347381
label: '字段动物园', pluralLabel: '字段动物园',
348382
fields: { f_lookups: { label: '查找 → 客户(多值)' } },

0 commit comments

Comments
 (0)