Repository navigation
fix(platform-objects): report panel rows read the business wording in zh-CN, ja-JP and es-ES - #37377
Draft
objectstack-fleet[bot] wants to merge 4 commits into
Draft
objectstack-fleet[bot] wants to merge 4 commits into
objectstack-fleet[bot] wants to merge 4 commits into
Conversation
… zh-CN, ja-JP and es-ES Re-translates the six reworded report-panel hints, the zh-CN values hint, the eight dataset/values/rows/columns labels (top level and blocks) and the Dataset binding heading from the current English. Claude-Session: https://claude.ai/code/session_01Utp6Ca6EBDpTBZk8v46Jjv Co-authored-by: Claude <noreply@anthropic.com>
…and pin the business vocabulary Claude-Session: https://claude.ai/code/session_01Utp6Ca6EBDpTBZk8v46Jjv Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6Ca6EBDpTBZk8v46Jjv Co-authored-by: Claude <noreply@anthropic.com>
…authored record-row label Claude-Session: https://claude.ai/code/session_01Utp6Ca6EBDpTBZk8v46Jjv Co-authored-by: Claude <noreply@anthropic.com>
Contributor
📓 Docs Drift CheckNothing in this diff resolved to a documentable surface (no symbol, route or SDK anchor derived from 1 changed package(s)), so this run has no opinion about the docs. What this run could not see
Coarse fallback — 3 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #36836
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
Translation text only, in the three hand-written locale bundles of
@objectstack/platform-objects(zh-CN,ja-JP,es-ES*.metadata-forms.generated.ts). No key added or dropped;pnpm check:i18nis in sync.The six rows #36447 reworded (the six ledger-pinned hints PR #36814 left marked "not re-judged"), re-translated from the current English in ja-JP and es-ES, and in zh-CN too (see Acceptance notes):
report.sections.dataset_binding.descriptionreport.fields.dataset.helpTextreport.fields.values.helpTextreport.fields.rows.helpTextreport.fields.drilldown.helpTextreport.fields.runtimeFilter.helpTextThe
valueshint is translated against the current English from #36879 ("…such as totals, counts, averages or ratios…") in all three locales (scope note item 1 and 2).exportOptions.fileNamePrefixwas already done by #36879 and is untouched.The eight label leaves (scope note item 3), each in zh-CN / ja-JP / es-ES, top level and the
blockstwin moved together:dataset,blocks.datasetvalues,blocks.valuesrows,blocks.rowscolumns,blocks.columnszh-CN uses the console overlay's words; ja-JP and es-ES use the words this catalog already spends on the data source (データソース / Fuente de datos, e.g.
report.fields["dateRange.dimension"]).The heading (scope note item 4):
report.sections.dataset_binding.label数据集绑定 / データセットのバインド / Vinculación del conjunto de datos becomes 数据来源绑定 / データソースの紐付け / Vinculación de la fuente de datos, so the heading names the source with the same word as the field under it.Ledgers. The three decision ledgers that pin these leaves are updated in place:
report-form-echo-decisions.test.tsandreport-dataset-panel-echo-decisions.test.tsrecord the re-judgement on each row (the "not re-judged" notes are resolved); the vocabulary twin test now asserts the business vocabulary (heading and field twins name the source once, the description no longer speaks of dimensions); theANDtoken test now asserts the business-wording hint carries noANDin any locale, while the dataset filter twin keeps it.object-lifecycle-panel-echo-decisions.test.tscopied its "rows" fragment (行 / filas) fromreport.fields.rows.label; that leaf left the record-row sense, so the eight copies now point atsys_import_job.fields.total_rows.label(総行数 / Filas totales, authored, no provenance row), and the renderings did not move.Tests
platform-objects translations suite + typecheck — green at 1928c08
First run before the ledger fixes was red (2 files): a syntax slip in a ledger reason, and the lifecycle ledger's twin assertion
ja-JP twin report.fields.rows.label lost the shared fragment: expected 'グループ化' to contain '行'— the expected consequence of moving the rows label, fixed by re-pointing the twin.Local gates — at 1928c08
The remaining derived families are whole-tree gates unrelated to translation text; CI runs them.
Acceptance notes
valueshint. The card's premise that zh-CN "follows the new meaning" holds for the console overlay, not for the platform zh-CN bundle, which still carried the semantic-layer wording on all six rows (要绑定的数据集…, 度量/维度). Five of the six zh-CN values are copied verbatim from the console overlay, which already carried the current English; the section description has no overlay twin and was translated fresh. Same file, same defect class, same gate family.columns.helpText,order.helpText,blocks.helpText,chart.helpText,dateRange.helpTextandexportOptions.helpText, and thejoined_blocks/filter_and_chartsection descriptions (zh-CN shares several of them). They are reported to the seat, not fixed here.metadata-form-zh-cn.ts, open PR refactor(spec)!: rename the Studio helper defineForm to defineMetadataForm and its modules to *.metadata-form.ts #37366) still reads要统计的指标(来自数据来源)for thevalueshint, the pre-fix(spec): the report form's top-level rows use the blocks grid's terms #36879 meaning; that file is outside this PR.compactToolbarrows are untouched (sibling 表格紧凑工具栏(compactToolbar)的说明改写后:十种译文和控制台中文覆盖层只剩旧的第一句,需要译者过一遍 #36874 follows this PR on the same bundles).Verification
First read, by risk:
packages/platform-objects/src/apps/translations/ja-JP.metadata-forms.generated.tsandes-ES.metadata-forms.generated.ts, thereportblock: the 15 changed values per locale.packages/platform-objects/src/apps/translations/report-form-echo-decisions.test.ts: the rewritten vocabulary twin test and theANDtoken test.packages/platform-objects/src/apps/translations/object-lifecycle-panel-echo-decisions.test.ts: the re-pointed "rows" twin.Two-minute check:
pnpm --filter @objectstack/platform-objects exec vitest run src/apps/translations— expect 26 files, 610 tests passed. In the browser: switch Studio to 日本語, open any report, and the Data Source section reads データソース / 指標 / グループ化 under the heading データソースの紐付け.Generated by Claude Code