Skip to content

Commit 7b890a6

Browse files
committed
fix(platform-objects): 21 zh-CN metadata-form leaves say what their source says
The 613 LEGACY-TRUSTED zh-CN leaves in `zh-CN.metadata-forms.generated.ts` — differing from `en`, carrying no digest — were imported from a pre-consolidation hand vocabulary in `e0077ea36` and never reconciled against the seeded English. The census on #14587 read all 613 and found 26 that assert something the source does not, or drop a distinct concept the source names. Five (the whole `dashboard` subtree) landed in `9f57f1e31`; these are the remaining 21, verified still wrong against `origin/main` `9f3989771` before any edit. No instrument here can see them, by construction: `check-i18n-stale-fill` detects a byte copy of a previous source revision, and these are hand-written mistranslations. Merge does not correct them either — it fills gaps only. Each replacement is argued against this bundle's own usage rather than freshly invented: `action.fields.body.helpText` takes the sibling `hook.fields.body.helpText` verbatim for the identical source sentence; 「环境助手」 is the bundle's own rendering of "ambient assistant"; 「请求体结构」 is its own for "request shape"; 「按对象 / 按字段」 comes from the two fields the permission section holds; 「分块」、「维度」、「度量」 come from the report subtree; and the no-trailing-period register follows 60 of 66 translated section descriptions. zh-CN only. es-ES and ja-JP are not touched, nor are the 18 looser paraphrases the census deliberately excluded. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ARYe3yQTQCUFm5qPYNgKaJ
1 parent 9f39897 commit 7b890a6

2 files changed

Lines changed: 60 additions & 21 deletions

File tree

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
"@objectstack/platform-objects": patch
3+
---
4+
5+
fix(platform-objects): 21 zh-CN metadata-form leaves say what their source says
6+
7+
`zh-CN.metadata-forms.generated.ts` carries 615 leaves that differ from `en` and hold no
8+
digest in `zh-CN.source-hashes.generated.ts` — LEGACY-TRUSTED values carried in from a
9+
pre-consolidation hand vocabulary (`e0077ea36` deleted a 746-line
10+
`src/metadata-translations/zh-CN.ts` and imported its strings) and never reconciled
11+
against the English the same commit range seeded. A census of all 613 (as the population
12+
then stood) found 26 that assert something the source does not, or drop a distinct concept
13+
the source names. Five of the 26 — the whole `dashboard` subtree — landed in `9f57f1e31`.
14+
These are the remaining 21.
15+
16+
They are not stale fills and no gate can see them: a stale fill is a byte copy of a
17+
previous source revision, detectable by cross-locale agreement or a recorded digest, and
18+
these are neither. Nor does re-extraction correct them — bundle merge fills gaps only, and
19+
a present-but-wrong leaf is not a gap.
20+
21+
Three defect kinds, all decided against this bundle's own usage:
22+
23+
- **Asserts an input that does not exist.** `skill.sections.triggers.description` promised
24+
「触发关键词」 for a section holding only `triggerConditions` (`triggerPhrases` was
25+
removed with the key); `email_template.fields.variables.helpText` promised a per-variable
26+
「默认值」 that `EmailTemplateDefinitionVariableSchema` does not declare;
27+
`action.sections.advanced.description` promised 「批量」 after `bulkEnabled` was removed
28+
from that section.
29+
- **Names the wrong technology.** `action.fields.body.helpText` said the body is
30+
「JavaScript 代码」; an L1 expression is not JavaScript. It now reads
31+
「L1 表达式或 L2 沙箱 JS 体」 — verbatim the sibling `hook.fields.body.helpText`, which
32+
translates the identical source sentence correctly.
33+
- **Drops a distinct concept the source names.** `object.fields.isSystem.helpText` dropped
34+
「共享默认为公开」; `view.fields.filter.helpText` reduced a sentence about the shared
35+
visual builder to 「筛选规则」; `permission.sections.identity.description` dropped both
36+
sentences explaining how permission sets stack on profiles.
37+
38+
zh-CN only: es-ES and ja-JP are untouched here. The 18 looser paraphrases the census
39+
excluded are also untouched.

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

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export const zhCNMetadataForms: NonNullable<TranslationData['metadataForms']> =
5858
},
5959
isSystem: {
6060
label: "系统内置",
61-
helpText: "系统对象(受保护,不可删除)"
61+
helpText: "系统对象(受保护,不可删除;共享默认为公开)"
6262
},
6363
fields: {
6464
label: "字段",
@@ -210,7 +210,7 @@ export const zhCNMetadataForms: NonNullable<TranslationData['metadataForms']> =
210210
},
211211
"fields.trackHistory": {
212212
label: "历史跟踪",
213-
helpText: "保留变更历史"
213+
helpText: "在记录的活动时间线上概述该字段的变更"
214214
},
215215
"fields.visibleWhen": {
216216
label: "Visible When",
@@ -666,7 +666,7 @@ export const zhCNMetadataForms: NonNullable<TranslationData['metadataForms']> =
666666
},
667667
filter: {
668668
label: "筛选",
669-
helpText: "筛选规则"
669+
helpText: "筛选条件——与列表工具栏相同的可视化构建器,运算符与取值输入随字段类型变化"
670670
},
671671
sort: {
672672
label: "排序",
@@ -752,7 +752,7 @@ export const zhCNMetadataForms: NonNullable<TranslationData['metadataForms']> =
752752
sections: {
753753
basics: {
754754
label: "基础信息",
755-
description: "名称、标题与图标"
755+
description: "页面标识与模板"
756756
},
757757
data_context: {
758758
label: "数据上下文",
@@ -768,7 +768,7 @@ export const zhCNMetadataForms: NonNullable<TranslationData['metadataForms']> =
768768
},
769769
advanced: {
770770
label: "高级设置",
771-
description: "默认页、类型与分配"
771+
description: "启用状态、适用人群与无障碍"
772772
}
773773
},
774774
fields: {
@@ -786,7 +786,7 @@ export const zhCNMetadataForms: NonNullable<TranslationData['metadataForms']> =
786786
},
787787
type: {
788788
label: "类型",
789-
helpText: "页面种类 — list / record / home / app / utility。列表页的展现形式(grid / kanban / calendar)是在 Interface 中设置的可视化,不是页面类型。"
789+
helpText: "页面种类。\"List / Interface\" 把来源视图绑定为经过编排的界面——它的展现形式(grid / kanban / calendar / …)是在 Interface 中设置的可视化,不是页面类型。"
790790
},
791791
template: {
792792
label: "模板",
@@ -1020,7 +1020,7 @@ export const zhCNMetadataForms: NonNullable<TranslationData['metadataForms']> =
10201020
},
10211021
defaultAgent: {
10221022
label: "默认智能体",
1023-
helpText: "右下角浮动助手按钮调用的 AI 智能体"
1023+
helpText: "环境助手使用的平台智能体(默认 'ask';创作类界面用 'build')"
10241024
},
10251025
branding: {
10261026
label: "品牌",
@@ -1049,7 +1049,7 @@ export const zhCNMetadataForms: NonNullable<TranslationData['metadataForms']> =
10491049
},
10501050
advanced: {
10511051
label: "高级设置",
1052-
description: "批量与 AI 暴露"
1052+
description: "AI 暴露与 API 请求体结构"
10531053
}
10541054
},
10551055
fields: {
@@ -1087,7 +1087,7 @@ export const zhCNMetadataForms: NonNullable<TranslationData['metadataForms']> =
10871087
},
10881088
body: {
10891089
label: "正文",
1090-
helpText: "要执行的 JavaScript 代码"
1090+
helpText: "L1 表达式或 L2 沙箱 JS 体"
10911091
},
10921092
"body.language": {
10931093
label: "Language",
@@ -1164,15 +1164,15 @@ export const zhCNMetadataForms: NonNullable<TranslationData['metadataForms']> =
11641164
sections: {
11651165
basics: {
11661166
label: "基础信息",
1167-
description: "名称与数据源"
1167+
description: "标识与报表类型"
11681168
},
11691169
dataset_binding: {
11701170
label: "Dataset binding",
11711171
description: "The semantic-layer dataset this report renders. Values are the dataset’s measures; rows are its dimensions."
11721172
},
11731173
joined_blocks: {
11741174
label: "关联对象",
1175-
description: "跨对象联合查询"
1175+
description: "叠加进同一张报表的其他数据集分块(仅 joined 报表)"
11761176
},
11771177
filter_and_chart: {
11781178
label: "筛选与图表",
@@ -1208,7 +1208,7 @@ export const zhCNMetadataForms: NonNullable<TranslationData['metadataForms']> =
12081208
},
12091209
columns: {
12101210
label: "列",
1211-
helpText: "报表中显示的列"
1211+
helpText: "横向展开的维度名(仅 matrix 报表)"
12121212
},
12131213
order: {
12141214
label: "排序",
@@ -1372,11 +1372,11 @@ export const zhCNMetadataForms: NonNullable<TranslationData['metadataForms']> =
13721372
sections: {
13731373
identity: {
13741374
label: "基础信息",
1375-
description: "模板 ID 与正文类型"
1375+
description: "模板标识符,由 IEmailService.sendTemplate({ template: name, locale, ... }) 解析。"
13761376
},
13771377
subject: {
13781378
label: "主题",
1379-
description: "邮件主题模板"
1379+
description: "主题行。支持 {{var.path}} 插值。"
13801380
},
13811381
html_body: {
13821382
label: "HTML 正文",
@@ -1427,7 +1427,7 @@ export const zhCNMetadataForms: NonNullable<TranslationData['metadataForms']> =
14271427
},
14281428
variables: {
14291429
label: "变量",
1430-
helpText: "模板内可引用的变量与默认值"
1430+
helpText: "示例:[{ \"name\": \"user.name\", \"type\": \"string\", \"required\": true, \"description\": \"...\" }]"
14311431
},
14321432
fromOverride: {
14331433
label: "发件人覆盖",
@@ -1460,15 +1460,15 @@ export const zhCNMetadataForms: NonNullable<TranslationData['metadataForms']> =
14601460
sections: {
14611461
identity: {
14621462
label: "身份",
1463-
description: "权限集或配置文件标识"
1463+
description: "权限集叠加在配置文件之上,用于授予额外访问权限。配置文件是按 1:1 分配给每个用户的基础权限集。"
14641464
},
14651465
system_permissions: {
14661466
label: "系统权限",
1467-
description: "应用、API、管理与设置访问"
1467+
description: "不针对特定对象的高层能力——如 manage_users、view_audit_logs"
14681468
},
14691469
object_and_field_permissions: {
14701470
label: "对象与字段权限",
1471-
description: "增删改查与字段可见性"
1471+
description: "对象级增删改查 + 字段级安全(FLS)。可用矩阵编辑器编辑,或在此粘贴 JSON。"
14721472
},
14731473
tab_and_row_level_security: {
14741474
label: "标签页与行级安全",
@@ -1486,7 +1486,7 @@ export const zhCNMetadataForms: NonNullable<TranslationData['metadataForms']> =
14861486
},
14871487
systemPermissions: {
14881488
label: "系统权限",
1489-
helpText: "应用访问、API、管理操作"
1489+
helpText: "系统能力键列表"
14901490
},
14911491
objects: {
14921492
label: "对象权限",
@@ -1662,7 +1662,7 @@ export const zhCNMetadataForms: NonNullable<TranslationData['metadataForms']> =
16621662
},
16631663
triggers: {
16641664
label: "触发条件",
1665-
description: "触发关键词与上下文"
1665+
description: "此技能应在何时激活"
16661666
}
16671667
},
16681668
fields: {
@@ -1676,7 +1676,7 @@ export const zhCNMetadataForms: NonNullable<TranslationData['metadataForms']> =
16761676
},
16771677
description: {
16781678
label: "描述",
1679-
helpText: "AI 用来判断是否调用的简短说明"
1679+
helpText: "此技能的作用"
16801680
},
16811681
active: {
16821682
label: "启用",

0 commit comments

Comments
 (0)