Skip to content

Commit 088852b

Browse files
fix(platform-objects): the rest of the report panel hints read the business wording in ja-JP, es-ES and zh-CN (#37464)
Fixes #37384 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`), `report` block. No key added or dropped; `pnpm check:i18n` is in sync. Vocabulary follows PR #37377: データソース / 指標 / グループ化 · Fuente de datos / Métricas / Agrupar por · 数据来源 / 指标 / 分组. The enum tokens `matrix` / `joined` stay as tokens, as the English and each bundle's own `type` hint keep them. **Every leaf re-translated** (current English, then the new value per locale): | Leaf | English | ja-JP | es-ES | zh-CN | |:---|:---|:---|:---|:---| | `report.sections.joined_blocks.description` | Other blocks stacked into the same report, each with its own data source (joined reports only). | 同じレポートに積み重ねる他のブロック。それぞれ独自のデータソースを持ちます(joined レポートのみ)。 | Otros bloques apilados en el mismo informe, cada uno con su propia fuente de datos (solo informes joined). | 叠加进同一张报表的其他分块,各有自己的数据来源(仅 joined 报表) | | `report.sections.filter_and_chart.description` | Filter conditions and how the chart is shown. | フィルター条件と、チャートの表示方法。 | Las condiciones de filtro y cómo se muestra el gráfico. | unchanged (条件与图表展示 already follows) | | `report.fields.columns.helpText` | Groups spread across the columns (matrix reports only). | 列方向に展開するグループ(matrix レポートのみ)。 | Grupos distribuidos en las columnas (solo informes matrix). | 横向展开的分组(仅 matrix 报表) | | `report.fields.order.helpText` | What to sort by, most important first (a grouping or a metric). Time groupings sort in date order by default. | 並べ替えの基準。重要なものから順に指定します(グループまたは指標)。時間のグループは既定で日付順に並びます。 | Por qué ordenar, lo más importante primero (una agrupación o una métrica). Las agrupaciones de tiempo se ordenan por fecha de forma predeterminada. | 排序依据,最重要的在前(某个分组或指标)。时间分组默认按时间先后排列。 | | `report.fields.blocks.helpText` | Sub-reports, each with its own data source (joined reports only). | サブレポート。それぞれ独自のデータソースを持ちます(joined レポートのみ)。 | Subinformes, cada uno con su propia fuente de datos (solo informes joined). | 子报表,各有自己的数据来源(仅 joined 报表) | | `report.fields.chart.helpText` | Chart type and settings. | チャートの種類と設定。 | Tipo y configuración del gráfico. | unchanged (图表类型与配置 already follows) | | `report.fields.dateRange.helpText` | The period the report opens with, and whether people may choose their own range. | レポートを開いたときに表示される期間と、利用者が自分で範囲を選べるかどうか。 | El período con el que se abre el informe y si cada persona puede elegir su propio rango. | 打开报表时显示的时间段,以及使用者能否自己选择范围 | | `report.fields.exportOptions.helpText` | Download formats (csv, xlsx) and file name. Who may download is set by the export permission on the data source’s object. | …データソースのオブジェクトのエクスポート権限で決まります。 (データセット → データソース) | …el permiso de exportación del objeto de la fuente de datos. (del conjunto de datos → de la fuente de datos) | …由数据来源对象上的导出权限决定 (数据集 → 数据来源) | Counts: ja-JP 8 leaves, es-ES 8 leaves, zh-CN 6 leaves. zh-CN `filter_and_chart.description` and `chart.helpText` were already current against the English and are left as is. The six zh-CN values that moved match the console's own zh overlay (`metadata-form-zh-cn.ts`), which already carried the current English, except that the platform bundle keeps the `matrix` / `joined` tokens its `type` hint and `joined_blocks` label use, where the overlay writes 矩阵表 / 联合报表. **Ledger.** `report-dataset-panel-echo-decisions.test.ts`: the `values.helpText` row's reason cited its sibling `order.helpText` as naming the rows/columns dimension and values measure vocabularies; that sibling no longer does, so the reason gains one sentence saying so and keeps the precedent as the record of why the leaf was reached. No verdict or pinned value moved: no ledger pins any of the leaves above by value (they are the population's authored, non-echoing negatives). ## Tests <details><summary>platform-objects: translations suite, full package suite and typecheck, green at d37c591</summary> ``` pnpm --filter @objectstack/platform-objects exec vitest run --maxWorkers=2 src/apps/translations Test Files 26 passed (26) Tests 610 passed (610) pnpm --filter @objectstack/platform-objects run typecheck (tsc --noEmit, scripts tsconfig, check:test-typecheck OK) os-verify-lock: VERDICT command-exit 0 pnpm --filter @objectstack/platform-objects exec vitest run --maxWorkers=2 Test Files 127 passed (127) Tests 2176 passed (2176) os-verify-lock: VERDICT command-exit 0 ``` </details> <details><summary>Local gates, at d37c591</summary> ``` node scripts/pm/dispatch-gates.mjs --commands (diff-derived): 63 families pnpm check:i18n EXIT=0 check-i18n-bundles: OK (10 package(s), all bundles in sync, no undeclared authoring keys) (first run EXIT=3 PREREQUISITE NOT MET, CLI unbuilt; re-run after the gate's own closure build) pnpm check:i18n-stale-fill EXIT=0 OK (11 bundle set(s), no new stale fills, 1 baselined) pnpm check:nul-bytes EXIT=0 pnpm check:doc-authoring EXIT=0 pnpm check:issue-citations EXIT=0 (self-test + scan: no issue citations added, 3 files read) pnpm check:cross-package-test-inputs EXIT=0 check-adr-0087-registration / check-changeset-no-major / check-empty-changeset EXIT=0 each pnpm check:dual-build-cjs-loads EXIT=0 (first run EXIT=3 prerequisite, re-run green) remaining 41 derived families EXIT=0 each NOT MEASURED locally (my 150 s per-gate cap, whole-tree scans that read no translation text; CI runs them): check-comment-mask-corpus, check:query-options-erasure, check:slot-lookup dispatch-gates --ran 63 of 63 derived families accounted for node scripts/pm/overlap-check.mjs --branch=HEAD VERDICT clean (origin/main, #37436, #37422 merge cleanly) ``` </details> ## Acceptance notes - **Card item "the PR names every leaf it re-translated"**: the table above names all 22 locale-leaves; the two zh-CN leaves left as is are named too. - **Same-family leftovers, not in this card** (noted, not filed): `report.fields.type.helpText` still reads the enum list as slash-joined tokens (tabular / summary / matrix / joined) in all three bundles while the English reads "Report type: tabular, summary, matrix or joined."; the meaning matches, so it is not stale. `report.sections.joined_blocks.label` in zh-CN reads `joined 报表分块` where the console overlay reads 联合报表的分块; label leaves were outside this card. - `dataset-panel-echo-decisions.test.ts` cites `report.sections.joined_blocks.label is 关联对象` in one reason, which the bundle no longer reads; that row is the dataset panel's and its verdict does not depend on it. Not touched. ## Verification First read, by risk: 1. `packages/platform-objects/src/apps/translations/ja-JP.metadata-forms.generated.ts`, `report` block: the 8 changed values. 2. `packages/platform-objects/src/apps/translations/es-ES.metadata-forms.generated.ts`, `report` block: the 8 changed values. 3. `packages/platform-objects/src/apps/translations/zh-CN.metadata-forms.generated.ts`, `report` block: the 6 changed values. 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 Sort Order hint reads 並べ替えの基準。重要なものから順に指定します(グループまたは指標)… with no rows / columns / values tokens. --- _Generated by [Claude Code](https://claude.ai/code/session_01Utp6Ca6EBDpTBZk8v46Jjv)_ Co-authored-by: Claude <noreply@anthropic.com>
1 parent 4925039 commit 088852b

5 files changed

Lines changed: 33 additions & 23 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@objectstack/platform-objects': patch
3+
---
4+
5+
Clause-②: no
6+
Metadata-protocol: none
7+
8+
The rest of the report authoring panel's hints now say in Japanese and Spanish (and, where it still lagged, Chinese) what the English says. The Group Columns By, Sort Order, Blocks, Chart, Date Range and Export Options hints and the Joined blocks and Filter & chart section descriptions still translated the older developer wording (dimension names, sort keys with rows / columns / values, sub-reports bound to a dataset, chart type / legend / colors, the dataset's date dimension, the dataset's object); they are re-translated from the current English with the panel's business words (データソース / 指標 / グループ化, Fuente de datos / Métricas / Agrupar por, 数据来源 / 指标 / 分组). In Chinese the Chart hint and the Filter & chart description already followed the English and are unchanged.
9+
10+
Only translated text moved. No key, accepted value, default or English string changed.

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2236,11 +2236,11 @@ export const esESMetadataForms: NonNullable<TranslationData['metadataForms']> =
22362236
},
22372237
joined_blocks: {
22382238
label: "Bloques unidos",
2239-
description: "Bloques adicionales unidos en un solo informe (solo informes joined)."
2239+
description: "Otros bloques apilados en el mismo informe, cada uno con su propia fuente de datos (solo informes joined)."
22402240
},
22412241
filter_and_chart: {
22422242
label: "Filtro y gráfico",
2243-
description: "Filtros a nivel de informe y presentación del gráfico."
2243+
description: "Las condiciones de filtro y cómo se muestra el gráfico."
22442244
},
22452245
period_and_export: {
22462246
label: "Periodo y exportación",
@@ -2277,11 +2277,11 @@ export const esESMetadataForms: NonNullable<TranslationData['metadataForms']> =
22772277
},
22782278
columns: {
22792279
label: "Agrupar columnas por",
2280-
helpText: "Nombres de dimensión en horizontal (solo matrix)"
2280+
helpText: "Grupos distribuidos en las columnas (solo informes matrix)."
22812281
},
22822282
order: {
22832283
label: "Orden",
2284-
helpText: "Claves de ordenación, la más significativa primero (una dimensión de rows/columns o una medida de values). Las dimensiones de tiempo son cronológicas de forma predeterminada."
2284+
helpText: "Por qué ordenar, lo más importante primero (una agrupación o una métrica). Las agrupaciones de tiempo se ordenan por fecha de forma predeterminada."
22852285
},
22862286
"order.by": {
22872287
label: "Ordenar por"
@@ -2295,7 +2295,7 @@ export const esESMetadataForms: NonNullable<TranslationData['metadataForms']> =
22952295
},
22962296
blocks: {
22972297
label: "Bloques",
2298-
helpText: "Subinformes vinculados a un conjunto de datos (solo informe joined)"
2298+
helpText: "Subinformes, cada uno con su propia fuente de datos (solo informes joined)."
22992299
},
23002300
"blocks.name": {
23012301
label: "Nombre"
@@ -2333,11 +2333,11 @@ export const esESMetadataForms: NonNullable<TranslationData['metadataForms']> =
23332333
},
23342334
chart: {
23352335
label: "Gráfico",
2336-
helpText: "Configuración de gráfico (type, legend, colors)"
2336+
helpText: "Tipo y configuración del gráfico."
23372337
},
23382338
dateRange: {
23392339
label: "Rango de fechas",
2340-
helpText: "Periodo predeterminado e interruptor de rango personalizado. La dimensión debe ser una dimensión de fecha del conjunto de datos; déjela vacía cuando el conjunto de datos tenga exactamente una."
2340+
helpText: "El período con el que se abre el informe y si cada persona puede elegir su propio rango."
23412341
},
23422342
"dateRange.dimension": {
23432343
label: "Campo de fecha",
@@ -2353,7 +2353,7 @@ export const esESMetadataForms: NonNullable<TranslationData['metadataForms']> =
23532353
},
23542354
exportOptions: {
23552355
label: "Opciones de exportación",
2356-
helpText: "Formatos de descarga (csv, xlsx) y nombre de archivo. Quién puede descargar lo determina el permiso de exportación del objeto del conjunto de datos."
2356+
helpText: "Formatos de descarga (csv, xlsx) y nombre de archivo. Quién puede descargar lo determina el permiso de exportación del objeto de la fuente de datos."
23572357
},
23582358
"exportOptions.formats": {
23592359
label: "Formatos",

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2236,11 +2236,11 @@ export const jaJPMetadataForms: NonNullable<TranslationData['metadataForms']> =
22362236
},
22372237
joined_blocks: {
22382238
label: "結合ブロック",
2239-
description: "1 つのレポートに結合する追加ブロック(joined レポートのみ)。"
2239+
description: "同じレポートに積み重ねる他のブロック。それぞれ独自のデータソースを持ちます(joined レポートのみ)。"
22402240
},
22412241
filter_and_chart: {
22422242
label: "フィルターとチャート",
2243-
description: "レポートレベルのフィルターとチャート表示。"
2243+
description: "フィルター条件と、チャートの表示方法。"
22442244
},
22452245
period_and_export: {
22462246
label: "期間とエクスポート",
@@ -2277,11 +2277,11 @@ export const jaJPMetadataForms: NonNullable<TranslationData['metadataForms']> =
22772277
},
22782278
columns: {
22792279
label: "列のグループ化",
2280-
helpText: "横方向のディメンション名(matrix のみ)"
2280+
helpText: "列方向に展開するグループ(matrix レポートのみ)。"
22812281
},
22822282
order: {
22832283
label: "並び順",
2284-
helpText: "ソートキー(優先度の高い順)。rows/columns のディメンション、または values のメジャーを指定します。時間ディメンションは既定で時系列順です。"
2284+
helpText: "並べ替えの基準。重要なものから順に指定します(グループまたは指標)。時間のグループは既定で日付順に並びます。"
22852285
},
22862286
"order.by": {
22872287
label: "並び替えキー"
@@ -2295,7 +2295,7 @@ export const jaJPMetadataForms: NonNullable<TranslationData['metadataForms']> =
22952295
},
22962296
blocks: {
22972297
label: "ブロック",
2298-
helpText: "データセットにバインドされたサブレポート(joined レポートのみ)"
2298+
helpText: "サブレポート。それぞれ独自のデータソースを持ちます(joined レポートのみ)。"
22992299
},
23002300
"blocks.name": {
23012301
label: "名前"
@@ -2333,11 +2333,11 @@ export const jaJPMetadataForms: NonNullable<TranslationData['metadataForms']> =
23332333
},
23342334
chart: {
23352335
label: "チャート",
2336-
helpText: "チャート設定(type, legend, colors)"
2336+
helpText: "チャートの種類と設定。"
23372337
},
23382338
dateRange: {
23392339
label: "日付範囲",
2340-
helpText: "既定の期間とカスタム範囲の切り替え。ディメンションはデータセットの日付ディメンションである必要があります。データセットに日付ディメンションが 1 つだけの場合は空欄のままにします。"
2340+
helpText: "レポートを開いたときに表示される期間と、利用者が自分で範囲を選べるかどうか。"
23412341
},
23422342
"dateRange.dimension": {
23432343
label: "日付フィールド",
@@ -2353,7 +2353,7 @@ export const jaJPMetadataForms: NonNullable<TranslationData['metadataForms']> =
23532353
},
23542354
exportOptions: {
23552355
label: "エクスポートオプション",
2356-
helpText: "ダウンロード形式(csv, xlsx)とファイル名。ダウンロードできるユーザーは、データセットのオブジェクトのエクスポート権限で決まります。"
2356+
helpText: "ダウンロード形式(csv, xlsx)とファイル名。ダウンロードできるユーザーは、データソースのオブジェクトのエクスポート権限で決まります。"
23572357
},
23582358
"exportOptions.formats": {
23592359
label: "形式",

‎packages/platform-objects/src/apps/translations/report-dataset-panel-echo-decisions.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ const DECISIONS: readonly Decision[] = [
111111
en: 'The metrics to show, such as totals, counts, averages or ratios (from the data source).',
112112
verdict: ALL_TRANSLATE,
113113
reason:
114-
'Prose. Its own sibling order.helpText names the same two vocabularies (rows/columns dimensions, values measures) in authored text in every locale, so the vocabulary existed and this leaf simply never got it. ⚠️ #36447 reworded this `en` source into business terms (from "Measure names (from the dataset) to display"); the zh-CN / ja-JP / es-ES verdicts and values above were taken against the OLD English and were not re-judged. ⚠️ #36838 reworded it again (from "The metrics to total or count (from the data source)."), because a measure may be any dataset measure, not only a total or a count. #36836 re-translated all three values from that English, naming the same four examples (totals, counts, averages, ratios) in each locale.',
114+
'Prose. Its own sibling order.helpText names the same two vocabularies (rows/columns dimensions, values measures) in authored text in every locale, so the vocabulary existed and this leaf simply never got it. ⚠️ #36447 reworded this `en` source into business terms (from "Measure names (from the dataset) to display"); the zh-CN / ja-JP / es-ES verdicts and values above were taken against the OLD English and were not re-judged. ⚠️ #36838 reworded it again (from "The metrics to total or count (from the data source)."), because a measure may be any dataset measure, not only a total or a count. #36836 re-translated all three values from that English, naming the same four examples (totals, counts, averages, ratios) in each locale. #37384 then re-translated the sibling order.helpText from its business English (a grouping or a metric) in all three locales, so the sibling no longer spells those two vocabularies; the precedent above is kept as the record of why this leaf was reached.',
115115
},
116116
{
117117
type: 'report',

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2236,7 +2236,7 @@ export const zhCNMetadataForms: NonNullable<TranslationData['metadataForms']> =
22362236
},
22372237
joined_blocks: {
22382238
label: "joined 报表分块",
2239-
description: "叠加进同一张报表的其他数据集分块(仅 joined 报表)"
2239+
description: "叠加进同一张报表的其他分块,各有自己的数据来源(仅 joined 报表)"
22402240
},
22412241
filter_and_chart: {
22422242
label: "筛选与图表",
@@ -2277,11 +2277,11 @@ export const zhCNMetadataForms: NonNullable<TranslationData['metadataForms']> =
22772277
},
22782278
columns: {
22792279
label: "列分组",
2280-
helpText: "横向展开的维度名(仅 matrix 报表)"
2280+
helpText: "横向展开的分组(仅 matrix 报表)"
22812281
},
22822282
order: {
22832283
label: "排序",
2284-
helpText: "排序键,最重要的在前(rows/columns 维度或 values 度量)。时间维度默认按时间顺序排列。"
2284+
helpText: "排序依据,最重要的在前(某个分组或指标)。时间分组默认按时间先后排列。"
22852285
},
22862286
"order.by": {
22872287
label: "排序依据"
@@ -2295,7 +2295,7 @@ export const zhCNMetadataForms: NonNullable<TranslationData['metadataForms']> =
22952295
},
22962296
blocks: {
22972297
label: "分块",
2298-
helpText: "绑定数据集的子报表(仅 joined 报表)"
2298+
helpText: "子报表,各有自己的数据来源(仅 joined 报表)"
22992299
},
23002300
"blocks.name": {
23012301
label: "名称"
@@ -2337,7 +2337,7 @@ export const zhCNMetadataForms: NonNullable<TranslationData['metadataForms']> =
23372337
},
23382338
dateRange: {
23392339
label: "日期范围",
2340-
helpText: "默认时间段与自定义范围开关。维度必须是数据集的日期维度;数据集只有一个日期维度时可留空"
2340+
helpText: "打开报表时显示的时间段,以及使用者能否自己选择范围"
23412341
},
23422342
"dateRange.dimension": {
23432343
label: "日期字段",
@@ -2353,7 +2353,7 @@ export const zhCNMetadataForms: NonNullable<TranslationData['metadataForms']> =
23532353
},
23542354
exportOptions: {
23552355
label: "导出选项",
2356-
helpText: "下载格式(csv、xlsx)与文件名。谁可以下载由数据集对象上的导出权限决定"
2356+
helpText: "下载格式(csv、xlsx)与文件名。谁可以下载由数据来源对象上的导出权限决定"
23572357
},
23582358
"exportOptions.formats": {
23592359
label: "格式",

0 commit comments

Comments
 (0)