Skip to content

Commit 403dee7

Browse files
committed
fix(platform-objects): carry the tree-reference rule into the es-ES, ja-JP and zh-CN reference help text
The English source for `object.fields.reference` gained a normative sentence on 2026-09-05: a `tree` field's `reference` is optional and, when present, must name the declaring object — a link to a different object is a `lookup`. The rule is enforced at parse time. The three translated locales still served the pre-2026-09-05 text, and were wrong in both directions at once: they dropped the tree rule, and they asserted a purpose the source no longer states ("for lookup / master_detail") that the tree case contradicts. Both halves move in all three locales. Only the three `helpText` leaf values change. The `label` siblings, the key set and the generated structure are untouched, and the `*.source-hashes.generated` tables correctly keep no record for a leaf that is a real translation. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ADLdAs2pVcH17h9tZKWMBg
1 parent 460d4b8 commit 403dee7

4 files changed

Lines changed: 28 additions & 3 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
'@objectstack/platform-objects': patch
3+
---
4+
5+
Metadata forms i18n: the `object.fields.reference` help text now carries the
6+
`tree` rule in Spanish, Japanese and Chinese, and no longer claims the field is
7+
for `lookup` / `master_detail`.
8+
9+
The English source for this row gained a normative sentence on 2026-09-05 — a
10+
`tree` field's `reference` is optional and, when present, must name the
11+
declaring object; a link to a different object is a `lookup`. That rule is
12+
enforced at parse time, so an author who writes a foreign target meets it as a
13+
refusal rather than as guidance.
14+
15+
The three translated locales still served the pre-2026-09-05 sentence. They
16+
were wrong in both directions at once: they dropped the `tree` rule entirely,
17+
and they asserted a purpose the source no longer states — "(para
18+
lookup/master_detail)" / "(lookup/master_detail 用)" / "(用于 lookup /
19+
master_detail)" — which the `tree` case contradicts. A Spanish, Japanese or
20+
Chinese console therefore told the author that `reference` was for the two
21+
relationship types that exclude `tree`, and gave no hint of the constraint they
22+
were about to hit.
23+
24+
Only the three `helpText` values move. The `label` siblings, the key set and
25+
the generated structure are unchanged.

packages/platform-objects/src/apps/translations/es-ES.metadata-forms.generated.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ export const esESMetadataForms: NonNullable<TranslationData['metadataForms']> =
162162
},
163163
"fields.reference": {
164164
label: "Referencia",
165-
helpText: "Objeto de destino (para lookup/master_detail)"
165+
helpText: "Nombre del objeto de destino. En un campo tree es opcional y, si se indica, debe ser este mismo objeto (un árbol es una jerarquía dentro de su propio objeto — para enlazar con otro objeto, usa un lookup)"
166166
},
167167
"fields.lookupFilters": {
168168
label: "Lookup Filters",

packages/platform-objects/src/apps/translations/ja-JP.metadata-forms.generated.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ export const jaJPMetadataForms: NonNullable<TranslationData['metadataForms']> =
162162
},
163163
"fields.reference": {
164164
label: "参照",
165-
helpText: "対象オブジェクト(lookup/master_detail 用)"
165+
helpText: "対象オブジェクト名。tree フィールドでは省略可能で、指定する場合はこのオブジェクト自身でなければなりません(ツリーは同一オブジェクト内の階層です — 別のオブジェクトへリンクする場合は lookup を使います)"
166166
},
167167
"fields.lookupFilters": {
168168
label: "Lookup Filters",

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
@@ -162,7 +162,7 @@ export const zhCNMetadataForms: NonNullable<TranslationData['metadataForms']> =
162162
},
163163
"fields.reference": {
164164
label: "引用对象",
165-
helpText: "目标对象(用于 lookup / master_detail)"
165+
helpText: "目标对象名称。tree 字段可省略;若填写,必须是本对象自身(树是同一对象内部的层级 — 链接到其他对象请用 lookup)"
166166
},
167167
"fields.lookupFilters": {
168168
label: "Lookup Filters",

0 commit comments

Comments
 (0)