Skip to content

feat(studio): the Studio app reads 应用搭建 in Chinese and App Studio in English - #37581

Draft
objectstack-fleet[bot] wants to merge 6 commits into
mainfrom
claude/issue-37566-app-studio-display-name
Draft

objectstack-fleet[bot] wants to merge 6 commits into
mainfrom
claude/issue-37566-app-studio-display-name

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Fixes #37566

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:所有用户在中文界面看到 Studio 叫「应用搭建」,英文界面叫「App Studio」——Studio 左上角的标志、应用切换菜单里「在应用搭建中查看 / View in App Studio」、顶栏的「在应用搭建中设计 / 编辑某应用」入口都改了;地址和权限名不变。
  • 为什么做:App Studio 改版(第三阶段)的显示名,按维护者定下的「中文应用搭建、英文 App Studio、只改显示」。
  • 出错会怎样:最坏是某个语言里还显示旧名「Studio」,不影响任何功能,可以直接撤回。
  • 要你做的:无。

What changes

Display text only (ADR-0084, the 2026-11-26 position amendment). Identifiers, the /studio address, permission names (studio.access) and package and API names are untouched; skills/** and studio-design/** components are untouched.

  • App label — STUDIO_APP.label is App Studio. In packages/platform-objects translations, zh-CN reads 应用搭建 and zh-Hant reads 應用搭建. The other eight packs (ar, de, es-ES, fr, ja-JP, ko, pt-BR, ru) used the Latin product name and now read App Studio. Each pack's recorded source hash for apps.studio.label is re-recorded for the new source, because all ten were re-translated in this change. Without that, withSourceFallback would serve the English source in the Chinese UI.
  • Studio brand (top-left mark) — engine.studio.mark in the Studio namespace (en App Studio, zh 应用搭建). This is the key that StudioBackToApp already reads, so no new key was needed. The App Studio 改版(1-5):去掉 Studio 顶栏改左右两栏——左上角两行(标志加折叠;返回加软件包切换器和「新建软件包」)、只读小锁、折叠窄栏 #37456 brand should reuse engine.studio.mark.
  • console.studio.title (the AppHeader studio crumb) — renamed in all eleven UI packs.
  • Doors into Studio from the app switcher and the top bar — topbar.viewInStudio / designInStudio / openAppInStudio and layout.appSwitcher.editAppInStudio / openAppInStudio, renamed in all eleven UI packs. Chinese packs read 在应用搭建中…; the others swap Studio for App Studio inside the existing sentence.

Tests

  • New: packages/platform-objects/src/apps/translations/studio-display-name.test.ts. It keeps STUDIO_APP.name === 'studio' and checks the served label (after withSourceFallback) in all eleven locales.
    • Ablation: putting back the old zh-CN digest turns it red (Expected "应用搭建", Received "App Studio"). This is evidence that the hash re-record is load-bearing.
  • Updated pins that read the real packs:
    • ui/packages/i18n/src/__tests__/residue-namespaces-3546.test.tsx (topbar.designInStudio);
    • ui/packages/app-shell/src/layout/__tests__/SidebarAppMenu-36112.test.tsx (zh topbar.viewInStudio);
    • the console.studio.title reason in untranslated-identity-4376.test.ts.

Acceptance notes

  • The app switcher has no Studio app row on a stock boot. This is by design: @objectstack/studio is not default-loaded (RUNNER notes, dev-plugin.ts). The switcher names Studio only through its door, which now reads 「在应用搭建中查看」 / "View in App Studio". STUDIO_APP.label reaches the UI only where the Studio app is installed.
  • The Studio tab title is the bare product name (ObjectOS, measured). It does not name the app, so there is nothing to rename there.
  • Not renamed, left for the phase-5 wording pass or a follow-up card:
    • About 30 sentences per pack mention Studio in prose, for example "unpublished changes in Studio", common.editInStudio, console.studio.accessRequired and the Studio-namespace refusal sentences.
    • The defaultValue: 'View in Studio' literal in SidebarAppMenu.tsx. It is a fallback that is used only when the key is missing, and it sits outside this card's file surface.
    • The packages/apps/studio manifest name: 'Studio', which is a package name.
    • The label: 'Studio' example in content/docs/ui/apps.mdx.
  • Locales the ruling does not name: zh-Hant follows zh-CN (應用搭建), and the Latin-name packs follow English (App Studio), as they did before.

Verification

Read first (risk order):

  1. packages/platform-objects/src/apps/translations/zh-CN.source-hashes.ts. The apps.studio.label digest is the hunk that decides what the Chinese UI is served. The same digest is used in all ten tables.
  2. ui/packages/i18n/src/namespaces/studio/zh.ts, engine.studio.mark. This is the brand the top-left reads.
  3. ui/packages/i18n/src/locales/de.ts and ja.ts, the door sentences. These are the two packs whose word order differs from English.

Two-minute check: open /_console/studio/PACKAGE_ID in a Chinese UI. The top-left reads 「‹ 返回应用 · PACKAGE · 应用搭建」, and the app menu in any app reads 「在应用搭建中查看」 or 「编辑应用」. Screenshots (Chromium, deviceScaleFactor 2, showcase) are in the seat's topic-37424/cards/shots-37566/ folder.


Generated by Claude Code

…English

Display text only: the app label, its locale-pack translations and recorded
source hashes, and the console.studio.title crumb in every UI pack. The
/studio address, the app name and every identifier stay.

Claude-Session: https://claude.ai/code/session_01Utp6CbL6Nn3scsU8yvLyU4
Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CbL6Nn3scsU8yvLyU4
Co-authored-by: Claude <noreply@anthropic.com>
…dio / 应用搭建

Claude-Session: https://claude.ai/code/session_01Utp6CbL6Nn3scsU8yvLyU4
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 26, 2026
@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

11 anchor(s) derived from 1 changed package(s); no hand-written page names any of them, so this run has nothing to list — not a clean bill of health. This check sees only pages that NAME a derived anchor: one that documents this change in prose, or enumerates it in an authoring dialect, names none and stays invisible to it on every run.

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): node scripts/docs-audit/affected-docs.mjs --json 6c290d3af7c52d019d1de1c09b6b0306f09700bb → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 760ca9fc1520c6c5e85729fbb848f745a597816c — the merge of head 3e7d903bf3353b1e2ba056df9e28199ffd18976f into base 6c290d3af7c52d019d1de1c09b6b0306f09700bb, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 760ca9fc1520c6c5e85729fbb848f745a597816c && git checkout 760ca9fc1520c6c5e85729fbb848f745a597816c
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 6c290d3af7c52d019d1de1c09b6b0306f09700bb 3e7d903bf3353b1e2ba056df9e28199ffd18976f && git checkout -B drift-repro 6c290d3af7c52d019d1de1c09b6b0306f09700bb && git merge --no-ff 3e7d903bf3353b1e2ba056df9e28199ffd18976f

node scripts/docs-audit/affected-docs.mjs --json 6c290d3af7c52d019d1de1c09b6b0306f09700bb

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/m tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

App Studio 改版(3-3):显示名改为「应用搭建 / App Studio」——应用标签与多语言文案(只改界面显示)

2 participants