Skip to content

Commit e6b66ec

Browse files
committed
fix(example-showcase): translate the task dataset's done_count and done_rate labels at birth
The two dataset measures the done rate moved into are declared surface under the i18n coverage ratchet, so they carry en and zh-CN bundle entries; the showcase's untranslated count is back at its baseline. Claude-Session: https://claude.ai/code/session_01Sfe5YjBLwB9J3y8fvm2xq1 Co-authored-by: Claude <noreply@anthropic.com>
1 parent fa979c5 commit e6b66ec

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

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

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

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,18 @@ export const ShowcaseTranslationBundle = {
348348
},
349349
},
350350
},
351+
// Translated at birth, same rule as the widgets above: the done rate moved
352+
// here from the delivery cube (#20943) as two new dataset measures, born
353+
// under the ratchet. The task dataset's older labels predate it and stay in
354+
// the frozen baseline.
355+
datasets: {
356+
showcase_task_metrics: {
357+
measures: {
358+
done_count: { label: 'Done Tasks' },
359+
done_rate: { label: 'Done Rate' },
360+
},
361+
},
362+
},
351363
},
352364
'zh-CN': {
353365
objects: {
@@ -1018,6 +1030,16 @@ export const ShowcaseTranslationBundle = {
10181030
},
10191031
},
10201032
},
1033+
// The done rate's two measures, translated at birth (#20943) — see the `en`
1034+
// block. The other task-dataset labels stay in the frozen baseline.
1035+
datasets: {
1036+
showcase_task_metrics: {
1037+
measures: {
1038+
done_count: { label: '已完成任务' },
1039+
done_rate: { label: '完成率' },
1040+
},
1041+
},
1042+
},
10211043
// Page component copy became declared surface with `pages.<name>.components`
10221044
// (#6080), so these keys are born under the ratchet: leaving any of them
10231045
// untranslated widens the frozen baseline and fails `check-i18n-coverage`.

0 commit comments

Comments
 (0)