Skip to content

Commit 2af79e7

Browse files
committed
chore(platform-objects): record the digest the extractor now writes, and the changeset
`email_template.fields.variables.helpText` is a JSON shape example — language-neutral, so the faithful es-ES and ja-JP rendering is the source verbatim. That makes each leaf a byte copy of its source, which is exactly the condition under which `os i18n extract` records a source digest, so both tables gain one entry. Generator output, not a hand-edit: the entry records a TRUE fact (the leaf is a copy of the CURRENT source), which is the opposite of the false claim the file header warns against. Its effect is to move this one leaf OUT of LEGACY-TRUSTED and INTO the staleness instrument's coverage — if the JSON example is ever revised, this leaf now reports stale instead of silently serving the superseded revision. Claude-Session: https://claude.ai/code/session_01ADLdAs2pVcH17h9tZKWMBg Co-authored-by: Claude <noreply@anthropic.com>
1 parent f474650 commit 2af79e7

3 files changed

Lines changed: 40 additions & 0 deletions

File tree

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
"@objectstack/platform-objects": patch
3+
---
4+
5+
fix(platform-objects): nine es-ES and ja-JP metadata-form leaves say what their source says
6+
7+
Nine leaves of `metadataForms` served a superseded English source revision in both es-ES
8+
and ja-JP. Each was a faithful translation of the sentence the source carried when it was
9+
extracted; the English moved afterwards and bundle merge fills gaps only, so a
10+
present-but-stale leaf is never refreshed by re-extraction.
11+
12+
The nine, by the test the census applies — does the string assert something the source
13+
does not, or drop a distinct concept the source names:
14+
15+
- `object.fields.fields.trackHistory.helpText` said "keep change history" in both. The
16+
source says `Summarize this field on the record activity timeline` — a different
17+
feature, not a loose translation.
18+
- `object.fields.isSystem.helpText` dropped `defaults sharing to public`.
19+
- `view.fields.filter.helpText` dropped the whole clause after the dash — the shared
20+
visual builder and its field-type-aware operators and value inputs.
21+
- `action.fields.body.helpText` said "JavaScript code to run", losing the L1-expression /
22+
L2-sandboxed-body distinction. It now reads as the sibling leaf
23+
`hook.fields.body.helpText` already renders that same source sentence in both locales.
24+
- `action.sections.advanced.description` asserted bulk operations, which the source does
25+
not name.
26+
- `page.fields.type.helpText` asserted the page-kind enum the source stopped listing and
27+
dropped the "List / Interface binds a source view into a curated surface" sentence.
28+
- `report.sections.basics.description` said "data source" where the source says report
29+
type.
30+
- `report.fields.columns.helpText` said "columns to show in the report", losing both
31+
`Dimension names across` and `matrix only`.
32+
- `email_template.fields.variables.helpText` described a list of variable names; the
33+
source is a JSON shape example, which is language-neutral and is now carried verbatim.
34+
35+
Values only — the key set is unchanged at 773 leaves, identical across all four bundles.
36+
The recorded-source-hash table is untouched and needs no entry: it records a digest only
37+
while a leaf is still a byte copy of its source, so all nine, being real translations,
38+
carry no entry and are LEGACY-TRUSTED by construction.

packages/platform-objects/src/apps/translations/es-ES.source-hashes.generated.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ export const esESGeneratedSourceHashes: Readonly<Record<string, string>> = {
6363
"metadataForms.dataset.sections.source.label": "8fe786e8e29c8cec",
6464
"metadataForms.doc.description": "f233af60238b0879",
6565
"metadataForms.doc.label": "3f35cf5088b999ad",
66+
"metadataForms.email_template.fields.variables.helpText": "27197774c2cda633",
6667
"metadataForms.field.fields.placeholder.helpText": "07cecac0844860be",
6768
"metadataForms.field.fields.placeholder.label": "44d62b55b63fe718",
6869
"metadataForms.field.fields.rows.helpText": "66755b9447e67a15",

packages/platform-objects/src/apps/translations/ja-JP.source-hashes.generated.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ export const jaJPGeneratedSourceHashes: Readonly<Record<string, string>> = {
6363
"metadataForms.dataset.sections.source.label": "8fe786e8e29c8cec",
6464
"metadataForms.doc.description": "f233af60238b0879",
6565
"metadataForms.doc.label": "3f35cf5088b999ad",
66+
"metadataForms.email_template.fields.variables.helpText": "27197774c2cda633",
6667
"metadataForms.field.fields.placeholder.helpText": "07cecac0844860be",
6768
"metadataForms.field.fields.placeholder.label": "44d62b55b63fe718",
6869
"metadataForms.field.fields.rows.helpText": "66755b9447e67a15",

0 commit comments

Comments
 (0)