Skip to content

Commit f4d02e6

Browse files
fix(i18n): help text that names Studio reads App Studio, and 应用搭建 in Chinese (#38481)
<!-- claude-projects-attribution: {"github_login":"os-project-manager"} --> _Requested by **Leehom** · [project thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XN6u2a2wnmnTMorCjf6kon8)_ Fixes #38340 Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户能看到什么变化:中文界面的管理员在应用搭建的几处表单帮助里(对象的相关列表、工具的标签、邮件模板的变量与来源说明)不再看到英文「Studio」,改为「应用搭建」;英文界面同处写 App Studio,权限能力「Studio Access」的英文名也改为 App Studio Access。 - 为什么做:界面改名为「应用搭建 / App Studio」后,服务端生成的帮助文字还剩 5 句旧名,中文界面不应夹杂零散英文。 - 出错会怎样:只改显示文字,地址、权限名和所有标识都不变;有问题直接撤回即可。 - 要你做什么:无。 ## What changes Five help texts in App Studio's own forms named the surface "Studio". Their sources now say "App Studio", the regenerated `en` bundles follow, and the Chinese leaves say 应用搭建 (zh-CN) and 應用搭建 (zh-Hant), the name ADR-0084's 2026-11-26 amendment gives the surface (decision 2: "Its name is App Studio, and 应用搭建 in a Chinese interface … so the English name changes as well. Only display text changes"). | Leaf | Source | Before (en) | After (en) | |:--|:--|:--|:--| | object form › `relatedLists` help | `packages/spec/src/data/object.metadata-form.ts` | … set in Studio's object settings … | … set in App Studio's object settings … | | email_template form › `variables` description | `packages/spec/src/system/email-template.metadata-form.ts` | Rendered as hints in Studio … | Rendered as hints in App Studio … | | tool form › `label` help | `packages/spec/src/ai/tool.metadata-form.ts` | Display name for Studio UI | Display name shown in App Studio | | `sys_email_template` › `label` help | `packages/platform-objects/src/audit/sys-email-template.object.ts` | Human-readable name shown in Studio | Human-readable name shown in App Studio | | `sys_email_template` › `managed_by` help | same file | … admin = created in Studio. | … admin = created in App Studio. | - The card's example source `email-template.zod.ts:139` ("Author hint shown in Studio") is not one of the five translated strings, so it is left alone. - **zh-CN and zh-Hant**: the five leaf values are hand-edited (AGENTS.md's documentation guardrails: translated-locale values are hand-written; structure and `en` come from the generator). zh-Hant carried the same five sentences, so it is fixed in the same pass with the spelling the Console's zh-Hant pack already uses. Other locales keep their text. - **Card ask 3, `Studio Access`**: joins this PR (area o5-ux agreed). The `studio.access` row in `packages/spec/src/security/capabilities.ts` now has the label `App Studio Access` and the description "Enter the App Studio metadata-design surfaces." The Console's `en` pack and `useFieldTranslation.ts` fallback already read `App Studio Access`; the registry label is the English fallback for any client without those packs. The capability name `studio.access` is unchanged. - Regenerated with `node scripts/check-i18n-bundles.mjs --write`: only the two `en` bundles moved (5 lines). No source-hash table moved. - **Overlap**: open draft PR #38421 touches the same generated translation files and `object.metadata-form.ts`. `overlap-check.mjs` at this head: merges cleanly. Whichever of this PR and #38421 lands second regenerates the translation bundles (`bash scripts/pm/os-regen-merge.sh`), never a hand merge. - **Review face**: the diff touches `packages/spec/src/**` (non-test), so `contract-review.md` reads the published-schema face and owes a contract-tier L2 record, even though only `helpText`/`description`/`label` string values change and no schema shape, key or export moves. Read first: `packages/spec/src/security/capabilities.ts` (the only row whose label a client may show as-is), then `zh-CN.metadata-forms.generated.ts` (three hand-edited leaves). ## Tests No test pinned any of these strings (`git grep` over `*.test.*` for each English sentence: zero hits). No new test: the change is display text, and the card's acceptance is a grep. - `pnpm --filter @objectstack/platform-objects exec vitest run src/apps/translations src/audit`: 36 files, 663 tests passed. - `pnpm --filter @objectstack/spec exec vitest run` over `src/security/*.test.ts`, the email-template, tool and object metadata-form tests and `src/metadata-forms`: 19 files, 478 tests passed. - `pnpm --filter @objectstack/plugin-security exec vitest run src/builtin-capabilities.test.ts src/builtin-capabilities.boot.test.ts`: 2 files, 24 tests passed. ## Acceptance notes - The eight other translated locales (ar, de, es-ES, fr, ja-JP, ko, pt-BR, ru) still carry "Studio" in all five of these leaves, 40 leaves in all; this card covers the Chinese interface only. Filed #38494 (area:ux, p2, blocked by this PR). ## Verification - The card's done-when: `grep -c Studio packages/platform-objects/src/apps/translations/zh-CN.*.generated.ts` answers 0 for every file (zh-Hant too). - `node scripts/check-i18n-bundles.mjs`: OK, all bundles in sync. - `pnpm --filter @objectstack/spec check:generated`: all 14 generated artifacts up to date. Two-minute check: in a Chinese interface, open an object's form in App Studio; the Related Lists help ends its built-in-tab sentence with 在应用搭建的对象设置里设置. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01FEkQ5nVXvVvyPPzdih9DTy <!-- signed: repo:objectstack#5 · os-project-manager · session_01FEkQ5nVXvVvyPPzdih9DTy --> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 545a4fa commit f4d02e6

12 files changed

Lines changed: 32 additions & 21 deletions
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
'@objectstack/spec': patch
3+
'@objectstack/platform-objects': patch
4+
---
5+
6+
fix(i18n): help text that names Studio reads App Studio, and 应用搭建 in Chinese
7+
8+
Clause-②: no
9+
Metadata-protocol: none
10+
11+
Five help texts in App Studio's own forms still named the surface "Studio": the object form's Related Lists help, the tool form's Label help, the email template form's Variables help, and the email template object's Label and Managed By help. They now say "App Studio" in English and 应用搭建 in the Chinese bundles (zh-CN, and 應用搭建 in zh-Hant), the name ADR-0084's 2026-11-26 amendment gives the surface. The capability registry's `studio.access` row now carries the label "App Studio Access" and says "App Studio" in its description, the same label the Console's own language packs already show. Only display text changes: the `studio.access` name, the `/studio` address and every identifier stay as they were. Other locales keep their current text.

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export const enMetadataForms: NonNullable<TranslationData['metadataForms']> = {
7878
},
7979
relatedLists: {
8080
label: "Related Lists",
81-
helpText: "The record page tabs after the overview, in order. Each entry is a child object name (e.g. task), object.field when that child has more than one relationship to this object, a built-in tab (sys_attachment, sys_approval_request, sys_activity), or an entry with its own title and columns, set in Studio's object settings. Once anything is listed, a related list no entry names shows no tab, a list another package adds included, until this object names it; attachments show only when listed. Empty: every list shows in the default order. A name that matches no relationship pointing at this object is refused when the object is saved."
81+
helpText: "The record page tabs after the overview, in order. Each entry is a child object name (e.g. task), object.field when that child has more than one relationship to this object, a built-in tab (sys_attachment, sys_approval_request, sys_activity), or an entry with its own title and columns, set in App Studio's object settings. Once anything is listed, a related list no entry names shows no tab, a list another package adds included, until this object names it; attachments show only when listed. Empty: every list shows in the default order. A name that matches no relationship pointing at this object is refused when the object is saved."
8282
},
8383
searchableFields: {
8484
label: "Searchable Fields",
@@ -2995,7 +2995,7 @@ export const enMetadataForms: NonNullable<TranslationData['metadataForms']> = {
29952995
},
29962996
variables: {
29972997
label: "Variables",
2998-
description: "Declared variables. Rendered as hints in Studio and validated by sendTemplate() when required."
2998+
description: "Declared variables. Rendered as hints in App Studio and validated by sendTemplate() when required."
29992999
},
30003000
delivery_overrides: {
30013001
label: "Delivery overrides",
@@ -3361,7 +3361,7 @@ export const enMetadataForms: NonNullable<TranslationData['metadataForms']> = {
33613361
},
33623362
label: {
33633363
label: "Label",
3364-
helpText: "Display name for Studio UI"
3364+
helpText: "Display name shown in App Studio"
33653365
},
33663366
description: {
33673367
label: "Description",

‎packages/platform-objects/src/apps/translations/en.objects.generated.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3367,7 +3367,7 @@ export const enObjects: NonNullable<TranslationData['objects']> = {
33673367
},
33683368
label: {
33693369
label: "Label",
3370-
help: "Human-readable name shown in Studio"
3370+
help: "Human-readable name shown in App Studio"
33713371
},
33723372
category: {
33733373
label: "Category",
@@ -3420,7 +3420,7 @@ export const enObjects: NonNullable<TranslationData['objects']> = {
34203420
},
34213421
managed_by: {
34223422
label: "Managed By",
3423-
help: "Record provenance: platform = framework built-in / package = app/package-declared (boot-seeded from declared email_template metadata) / admin = created in Studio.",
3423+
help: "Record provenance: platform = framework built-in / package = app/package-declared (boot-seeded from declared email_template metadata) / admin = created in App Studio.",
34243424
options: {
34253425
platform: "platform",
34263426
package: "package",

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export const zhCNMetadataForms: NonNullable<TranslationData['metadataForms']> =
7878
},
7979
relatedLists: {
8080
label: "记录页页签",
81-
helpText: "记录页在概览之后显示的页签,按顺序排列。每一项是子对象名称(例如 task);当该子对象与本对象有多个关系时写 object.field;也可以是内置页签(sys_attachment、sys_approval_request、sys_activity),或带自己标题和列的一项(在 Studio 的对象设置里设置)。一旦列出任何一项,没有列出的相关列表就不显示页签(其他包添加的列表也一样),直到本对象列出它;附件只有列出时才显示。为空时,所有列表按默认顺序显示。不对应任何指向本对象的关系的名称,在保存对象时会被拒绝。"
81+
helpText: "记录页在概览之后显示的页签,按顺序排列。每一项是子对象名称(例如 task);当该子对象与本对象有多个关系时写 object.field;也可以是内置页签(sys_attachment、sys_approval_request、sys_activity),或带自己标题和列的一项(在应用搭建的对象设置里设置)。一旦列出任何一项,没有列出的相关列表就不显示页签(其他包添加的列表也一样),直到本对象列出它;附件只有列出时才显示。为空时,所有列表按默认顺序显示。不对应任何指向本对象的关系的名称,在保存对象时会被拒绝。"
8282
},
8383
searchableFields: {
8484
label: "可搜索字段",
@@ -2995,7 +2995,7 @@ export const zhCNMetadataForms: NonNullable<TranslationData['metadataForms']> =
29952995
},
29962996
variables: {
29972997
label: "变量",
2998-
description: "声明的变量。Studio 会将其渲染为提示,并在必填时由 sendTemplate() 校验。"
2998+
description: "声明的变量。应用搭建会将其渲染为提示,并在必填时由 sendTemplate() 校验。"
29992999
},
30003000
delivery_overrides: {
30013001
label: "发送覆盖项",
@@ -3361,7 +3361,7 @@ export const zhCNMetadataForms: NonNullable<TranslationData['metadataForms']> =
33613361
},
33623362
label: {
33633363
label: "显示名称",
3364-
helpText: "Studio 中展示的名称"
3364+
helpText: "在应用搭建中显示的名称"
33653365
},
33663366
description: {
33673367
label: "描述",

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3367,7 +3367,7 @@ export const zhCNObjects: NonNullable<TranslationData['objects']> = {
33673367
},
33683368
label: {
33693369
label: "标签",
3370-
help: "在 Studio 中显示的人类可读名称"
3370+
help: "在应用搭建中显示的人类可读名称"
33713371
},
33723372
category: {
33733373
label: "分类",
@@ -3420,7 +3420,7 @@ export const zhCNObjects: NonNullable<TranslationData['objects']> = {
34203420
},
34213421
managed_by: {
34223422
label: "管理方",
3423-
help: "记录来源:platform = 框架内置 / package = 应用或包声明(启动时根据声明的 email_template 元数据写入)/ admin = 在 Studio 中创建。",
3423+
help: "记录来源:platform = 框架内置 / package = 应用或包声明(启动时根据声明的 email_template 元数据写入)/ admin = 在应用搭建中创建。",
34243424
options: {
34253425
platform: "平台",
34263426
package: "包",

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export const zhHantMetadataForms: NonNullable<TranslationData['metadataForms']>
7878
},
7979
relatedLists: {
8080
label: "記錄頁頁籤",
81-
helpText: "記錄頁在概覽之後顯示的頁籤,依順序排列。每一項是子物件名稱(例如 task);當該子物件與本物件有多個關係時寫 object.field;也可以是內建頁籤(sys_attachment、sys_approval_request、sys_activity),或帶自己標題和欄位的一項(在 Studio 的物件設定裡設定)。一旦列出任何一項,未列出的相關清單就不顯示頁籤(其他套件新增的清單也一樣),直到本物件列出它;附件只有列出時才顯示。為空時,所有清單依預設順序顯示。不對應任何指向本物件之關係的名稱,在儲存物件時會被拒絕。"
81+
helpText: "記錄頁在概覽之後顯示的頁籤,依順序排列。每一項是子物件名稱(例如 task);當該子物件與本物件有多個關係時寫 object.field;也可以是內建頁籤(sys_attachment、sys_approval_request、sys_activity),或帶自己標題和欄位的一項(在應用搭建的物件設定裡設定)。一旦列出任何一項,未列出的相關清單就不顯示頁籤(其他套件新增的清單也一樣),直到本物件列出它;附件只有列出時才顯示。為空時,所有清單依預設順序顯示。不對應任何指向本物件之關係的名稱,在儲存物件時會被拒絕。"
8282
},
8383
searchableFields: {
8484
label: "可搜尋欄位",
@@ -2995,7 +2995,7 @@ export const zhHantMetadataForms: NonNullable<TranslationData['metadataForms']>
29952995
},
29962996
variables: {
29972997
label: "變數",
2998-
description: "宣告的變數。Studio 會將其呈現為提示,並在必填時由 sendTemplate() 驗證。"
2998+
description: "宣告的變數。應用搭建會將其呈現為提示,並在必填時由 sendTemplate() 驗證。"
29992999
},
30003000
delivery_overrides: {
30013001
label: "傳送覆寫項目",
@@ -3361,7 +3361,7 @@ export const zhHantMetadataForms: NonNullable<TranslationData['metadataForms']>
33613361
},
33623362
label: {
33633363
label: "顯示名稱",
3364-
helpText: "Studio 中顯示的名稱"
3364+
helpText: "在應用搭建中顯示的名稱"
33653365
},
33663366
description: {
33673367
label: "描述",

‎packages/platform-objects/src/apps/translations/zh-Hant.objects.generated.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3367,7 +3367,7 @@ export const zhHantObjects: NonNullable<TranslationData['objects']> = {
33673367
},
33683368
label: {
33693369
label: "標籤",
3370-
help: "在 Studio 中顯示的人類可讀名稱"
3370+
help: "在應用搭建中顯示的人類可讀名稱"
33713371
},
33723372
category: {
33733373
label: "分類",
@@ -3420,7 +3420,7 @@ export const zhHantObjects: NonNullable<TranslationData['objects']> = {
34203420
},
34213421
managed_by: {
34223422
label: "管理方",
3423-
help: "記錄來源:platform = 框架內建 / package = 應用程式或套件宣告(啟動時根據宣告的 email_template 中繼資料寫入)/ admin = 在 Studio 中建立。",
3423+
help: "記錄來源:platform = 框架內建 / package = 應用程式或套件宣告(啟動時根據宣告的 email_template 中繼資料寫入)/ admin = 在應用搭建中建立。",
34243424
options: {
34253425
platform: "平台",
34263426
package: "套件",

‎packages/platform-objects/src/audit/sys-email-template.object.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export const SysEmailTemplate = ObjectSchema.create({
7373
label: 'Label',
7474
required: true,
7575
maxLength: 200,
76-
description: 'Human-readable name shown in Studio',
76+
description: 'Human-readable name shown in App Studio',
7777
group: 'Identity',
7878
}),
7979
category: Field.select(
@@ -188,7 +188,7 @@ export const SysEmailTemplate = ObjectSchema.create({
188188
defaultValue: 'admin',
189189
description:
190190
'Record provenance: platform = framework built-in / package = app/package-declared ' +
191-
'(boot-seeded from declared email_template metadata) / admin = created in Studio.',
191+
'(boot-seeded from declared email_template metadata) / admin = created in App Studio.',
192192
group: 'System',
193193
},
194194
),

‎packages/spec/src/ai/tool.metadata-form.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const toolForm = defineMetadataForm({
2525
columns: 2,
2626
fields: [
2727
{ field: 'name', required: true, colSpan: 1, helpText: 'Unique identifier (snake_case)' },
28-
{ field: 'label', required: true, colSpan: 1, helpText: 'Display name for Studio UI' },
28+
{ field: 'label', required: true, colSpan: 1, helpText: 'Display name shown in App Studio' },
2929
{ field: 'description', required: true, widget: 'textarea', colSpan: 2, helpText: 'Tell AI when to use this tool — be specific!' },
3030
{ field: 'objectName', widget: 'ref:object', colSpan: 1, helpText: 'Related object (if this tool operates on a specific object)' },
3131
],

‎packages/spec/src/data/object.metadata-form.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export const objectForm = defineMetadataForm({
8080
// set) cannot render as a chip there (#35923 review M1). A dangling name
8181
// is refused at the publish door (`related-list-ref-unknown`, `error`,
8282
// judged against the registry's children) and by `os validate` / `os build`.
83-
{ field: 'relatedLists', widget: 'related-list-entries', colSpan: 2, helpText: 'The record page tabs after the overview, in order. Each entry is a child object name (e.g. task), object.field when that child has more than one relationship to this object, a built-in tab (sys_attachment, sys_approval_request, sys_activity), or an entry with its own title and columns, set in Studio\'s object settings. Once anything is listed, a related list no entry names shows no tab, a list another package adds included, until this object names it; attachments show only when listed. Empty: every list shows in the default order. A name that matches no relationship pointing at this object is refused when the object is saved.' },
83+
{ field: 'relatedLists', widget: 'related-list-entries', colSpan: 2, helpText: 'The record page tabs after the overview, in order. Each entry is a child object name (e.g. task), object.field when that child has more than one relationship to this object, a built-in tab (sys_attachment, sys_approval_request, sys_activity), or an entry with its own title and columns, set in App Studio\'s object settings. Once anything is listed, a related list no entry names shows no tab, a list another package adds included, until this object names it; attachments show only when listed. Empty: every list shows in the default order. A name that matches no relationship pointing at this object is refused when the object is saved.' },
8484
{ field: 'searchableFields', widget: 'string-tags', colSpan: 2, helpText: 'Field names the $search query matches (ADR-0061): the default for the record picker, list quick-search and global search; a view may narrow it. Unset, search uses the name/title field plus short-text fields. Each entry must name a stored field of this object — an unknown name or a virtual formula field is refused at publish.' },
8585
// #19332 (flight G2a of ruling record 5861442317) — the object's field
8686
// groups, the ADR-0085 layout role beside `nameField` / `highlightFields`.

0 commit comments

Comments
 (0)