Skip to content

Commit f738ddb

Browse files
committed
i18n(showcase): translate the new inline picker param (#3405)
`check-i18n-coverage` ratchets each example at its current untranslated count, so a newly declared label that skips a locale the example claims to support pushes the count up and fails the gate — 456 → 460 here (`p_assignee`'s `label` and `helpText`, each counted on two surfaces). Translated rather than ratcheting the baseline up: ratcheting is what the gate exists to prevent, and the script only sanctions `--update` for a count that went DOWN. The gallery's older params sit inside the 456 baseline; this one is not allowed to widen it. `负责人` is what the bundle already renders for `showcase_task.assignee`, so the same idea keeps one word. The flow specimen's own label/description are not flagged — the `i18n/missing-action` rule covers action params, not flow nodes. `check-i18n-coverage` now reports "none new"; validate, typecheck and the 58 example tests all pass. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LkvDs4y4gveyB5NJZKxaZt
1 parent 13ecb37 commit f738ddb

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

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

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,23 @@ export const ShowcaseTranslationBundle = {
267267
showcase_field_zoo: {
268268
label: '字段动物园', pluralLabel: '字段动物园',
269269
fields: { f_lookups: { label: '查找 → 客户(多值)' } },
270+
// #3405 — the inline system-object picker specimen. Translated at birth
271+
// because `check-i18n-coverage` ratchets this example at its current
272+
// untranslated count: a newly declared label that skips zh-CN pushes the
273+
// count up and fails the gate. (The gallery's older params sit inside
274+
// that baseline; this one is not allowed to widen it.) `负责人` matches
275+
// what the bundle already renders for `showcase_task.assignee`, rather
276+
// than introducing a second word for the same idea.
277+
_actions: {
278+
showcase_action_param_gallery: {
279+
params: {
280+
p_assignee: {
281+
label: '负责人',
282+
helpText: '指向系统对象的内联查找 —— 可按姓名或邮箱搜索,无需填写 UUID。',
283+
},
284+
},
285+
},
286+
},
270287
},
271288
},
272289
},

0 commit comments

Comments
 (0)