Repository navigation
Commit f4d02e6
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
File tree
- .changeset
- packages
- platform-objects/src
- apps/translations
- audit
- spec/src
- ai
- data
- security
- system
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
2995 | 2995 | | |
2996 | 2996 | | |
2997 | 2997 | | |
2998 | | - | |
| 2998 | + | |
2999 | 2999 | | |
3000 | 3000 | | |
3001 | 3001 | | |
| |||
3361 | 3361 | | |
3362 | 3362 | | |
3363 | 3363 | | |
3364 | | - | |
| 3364 | + | |
3365 | 3365 | | |
3366 | 3366 | | |
3367 | 3367 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3367 | 3367 | | |
3368 | 3368 | | |
3369 | 3369 | | |
3370 | | - | |
| 3370 | + | |
3371 | 3371 | | |
3372 | 3372 | | |
3373 | 3373 | | |
| |||
3420 | 3420 | | |
3421 | 3421 | | |
3422 | 3422 | | |
3423 | | - | |
| 3423 | + | |
3424 | 3424 | | |
3425 | 3425 | | |
3426 | 3426 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
2995 | 2995 | | |
2996 | 2996 | | |
2997 | 2997 | | |
2998 | | - | |
| 2998 | + | |
2999 | 2999 | | |
3000 | 3000 | | |
3001 | 3001 | | |
| |||
3361 | 3361 | | |
3362 | 3362 | | |
3363 | 3363 | | |
3364 | | - | |
| 3364 | + | |
3365 | 3365 | | |
3366 | 3366 | | |
3367 | 3367 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3367 | 3367 | | |
3368 | 3368 | | |
3369 | 3369 | | |
3370 | | - | |
| 3370 | + | |
3371 | 3371 | | |
3372 | 3372 | | |
3373 | 3373 | | |
| |||
3420 | 3420 | | |
3421 | 3421 | | |
3422 | 3422 | | |
3423 | | - | |
| 3423 | + | |
3424 | 3424 | | |
3425 | 3425 | | |
3426 | 3426 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
2995 | 2995 | | |
2996 | 2996 | | |
2997 | 2997 | | |
2998 | | - | |
| 2998 | + | |
2999 | 2999 | | |
3000 | 3000 | | |
3001 | 3001 | | |
| |||
3361 | 3361 | | |
3362 | 3362 | | |
3363 | 3363 | | |
3364 | | - | |
| 3364 | + | |
3365 | 3365 | | |
3366 | 3366 | | |
3367 | 3367 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3367 | 3367 | | |
3368 | 3368 | | |
3369 | 3369 | | |
3370 | | - | |
| 3370 | + | |
3371 | 3371 | | |
3372 | 3372 | | |
3373 | 3373 | | |
| |||
3420 | 3420 | | |
3421 | 3421 | | |
3422 | 3422 | | |
3423 | | - | |
| 3423 | + | |
3424 | 3424 | | |
3425 | 3425 | | |
3426 | 3426 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
| 191 | + | |
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| |||
0 commit comments