Skip to content

Commit 021a735

Browse files
fix(platform-objects): the zh-CN dashboard gap help text says what its source now says (#16163)
* fix(platform-objects): re-translate the zh-CN dashboard `gap` helpText its source moved out from under `metadataForms.dashboard.fields.gap.helpText` read 「栅格间距(Tailwind 单位)」 — a faithful translation of `Grid gap (Tailwind units)`, which the source no longer says. `packages/spec/src/ui/dashboard.form.ts:25` now reads `Space between widgets, in steps of 0.25rem (4 = 1rem)`: it dropped the framework unit an app author cannot act on and gained a magnitude the author can compute with. The leaf kept the retired vocabulary and never gained the magnitude, because bundle merge fills gaps only — a present-but-stale leaf is not a gap. Now 「组件之间的间距,每级 0.25rem(4 = 1rem)」: `widgets` is 「组件」 as everywhere else in this bundle, the grid framing is gone as it is upstream, and the conversion is carried so a zh author can size `gap` without reading the English. One leaf. `columns` is deliberately unchanged upstream, so 「栅格列数(默认 12)」 stays accurate, and the rest of the subtree was corrected on 2026-09-03. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ARYe3yQTQCUFm5qPYNgKaJ * chore(changeset): patch note for the zh-CN dashboard gap help text Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ARYe3yQTQCUFm5qPYNgKaJ --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent a7cce55 commit 021a735

2 files changed

Lines changed: 23 additions & 1 deletion

File tree

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
"@objectstack/platform-objects": patch
3+
---
4+
5+
fix(platform-objects): the zh-CN `dashboard.gap` help text says what its source now says
6+
7+
`metadataForms.dashboard.fields.gap.helpText` in `zh-CN.metadata-forms.generated.ts`
8+
read 「栅格间距(Tailwind 单位)」. That was a faithful translation of the source it was
9+
extracted against, `Grid gap (Tailwind units)` — but the source has since been rewritten
10+
to `Space between widgets, in steps of 0.25rem (4 = 1rem)`, which deliberately drops the
11+
CSS framework unit an app author never chose and cannot act on, and adds the magnitude
12+
the author can size a dashboard with.
13+
14+
The leaf kept the retired vocabulary and never gained the magnitude, because bundle merge
15+
fills gaps only: a present-but-stale leaf is not a gap, so no amount of re-extraction
16+
corrects it. It now reads 「组件之间的间距,每级 0.25rem(4 = 1rem)」 — `widgets` is
17+
「组件」 as it is everywhere else in this bundle, the grid framing is gone exactly as it is
18+
upstream, and the conversion is carried so a zh author can size `gap` without reading the
19+
English.
20+
21+
One leaf. `columns` is unchanged upstream, so 「栅格列数(默认 12)」 stays accurate, and
22+
the other five leaves of this subtree were corrected separately.

packages/platform-objects/src/apps/translations/zh-CN.metadata-forms.generated.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -940,7 +940,7 @@ export const zhCNMetadataForms: NonNullable<TranslationData['metadataForms']> =
940940
},
941941
gap: {
942942
label: "间距",
943-
helpText: "栅格间距(Tailwind 单位)"
943+
helpText: "组件之间的间距,每级 0.25rem(4 = 1rem)"
944944
},
945945
refreshIntervalSeconds: {
946946
label: "刷新间隔",

0 commit comments

Comments
 (0)