Skip to content

Commit c573d28

Browse files
fix(i18n): sentences that name Studio read 应用搭建 in Chinese and App Studio in the other languages (#38339)
<!-- claude-projects-attribution: {"github_login":"os-tesla"} --> _Requested by **Tesla** · [project thread](https://claude.ai/code/project/chan_01AXsQkLFKRdQCqQ3RTr6Jao?thread=cmsg_01AXsQkLFKRdQCqQ3RTr6JaoTBeBeWuhs82hXPgJRyTok8)_ Fixes #37618 repo:objectstack#3 · os-tesla · session_01L9qibz59TqsYwACVq1LPf9 Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户能看到什么变化:中文界面里所有提到搭建工具的句子都改叫「应用搭建」,比如「在应用搭建中编辑」「这个对象在应用搭建里有未发布的改动」「应用搭建菜单」;英文和其他语言改叫「App Studio」。标志、入口和句子里的叫法从此一致。 - 为什么做:属于「App Studio 改版」专题。上一步只改了标志、应用名和入口,句子里还写着「Studio」,中文界面两个名字混着出现。 - 出错会怎样:最坏是某句话的叫法或语序不顺,不影响任何功能;地址、权限名和包名都没动,可以直接撤回。 - 要你做什么:无。 ## What changes Display text only, per ADR-0084's 2026-11-26 amendment (`docs/adr/0084-application-builder-information-architecture.md:368`: "Its name is App Studio, and 应用搭建 in a Chinese interface … A Chinese interface shows 应用搭建 and not the English name"). The `/studio` address, the `studio.access` capability name, package names, identifiers, code comments and `skills/**` are untouched. PR #37581 already renamed the brand, the app label and the doors; this PR renames every sentence that still said "Studio". - **UI packs (`ui/packages/i18n/src/locales/`)**: 24 keys, in every pack. `en`, `zh-Hans`, `ar`, `de`, `es`, `fr`, `ja`, `ko`, `pt-BR` and `ru` are edited by hand (240 values); `zh-Hant` is regenerated with `pnpm --filter @object-ui/i18n gen:zh-hant` (24 values, 應用搭建), never hand-edited. - `zh-Hans` reads 应用搭建 and drops the spaces that only separated the Latin word from Chinese text (「在 Studio 中编辑」 → 「在应用搭建中编辑」). - Every other pack swaps `Studio` for `App Studio` inside the existing sentence, as #37581 did for the doors, the non-Latin packs included. `de` writes its compounds with the coupling hyphen (`App-Studio-Zugriff`, `App-Studio-Liste`). - `common.editInStudio`'s `en` value was lowercase (`Edit in studio`); it now reads `Edit in App Studio`. - The capability label `capability.label.studio_access` is included (seat ruling Q1 A on the claim). The spec registry's English label (`packages/spec/src/security/capabilities.ts:55`) stays, so this PR touches nothing under `packages/spec/src/**`. The picker reads the pack key, so the interface shows the new name. - **`studio` namespace (`ui/packages/i18n/src/namespaces/studio/{en,zh}.ts`)**: 20 keys, among them the refusal sentence `engine.studio.refusal.draftUnreadable`, `engine.studio.menu.label`, `engine.studio.backToAppTitle(NoApp)` and `engine.studio.landingHome`. The namespace ships only `en` and `zh`. - **Inline fallbacks**: `check-i18n-call-site-keys` requires every literal `defaultValue` to equal its `en` value, so 20 literals in 11 files follow (`StudioRoute.tsx`, `AppNoAccessEmptyState.tsx`, `DesignModeHeaderPinsPanel.tsx`, `DesignModeMenu.tsx`, `DashboardView.tsx`, `PageView.tsx`, `RecordDetailView.tsx`, `RecordTabsConfig.tsx`, `StudioReturnButton.tsx`, `DraftReviewCard.tsx`, and the capability fallback row in `useFieldTranslation.ts`). No logic changes. The `studio` namespace's call sites carry no inline fallbacks. - **Docs** (seat ruling Q2 A, only the two lines the card names): `content/docs/build-without-code.mdx:22` quotes the top bar's door as "Design in App Studio", and the `content/docs/ui/apps.mdx` example reads `label: 'App Studio'`, as `STUDIO_APP.label` does. - **Changeset** `.changeset/37618-app-studio-prose-name.md`: patch for `@object-ui/i18n`, `@object-ui/app-shell`, `@object-ui/fields`, `@object-ui/plugin-chatbot` and `@object-ui/console`. ## Tests Pins that read these sentences move to the new text; none is loosened, deleted or skipped. - **Pack pins**: `ui/packages/i18n/src/__tests__/residue-namespaces-3546.test.tsx` (`common.editInStudio` in `en`, `zh-Hans`, `ja`, `ko`, `ar`, the inline-default source pin on `PageView.tsx`, and its comment's quoted label), `studioAccessGrantor-27521.test.ts`, `DraftReviewCard.i18n-38048.test.tsx`. - **Rendered-name pins** (inline fallbacks or the resident `studio` catalogue): `StudioRoute.test.tsx`, `CapabilityMultiSelectField.test.tsx` (the rendered chip; the registry fixture's own English label stays `Studio Access`, as the spec registry does), `DraftReviewCard-38048.test.tsx`, `DashboardView.inPageEdit-36372.test.tsx`, `PageView.editInStudioFollowsPackagePosture-12615.test.tsx`, `PackageFormDialog.newAppStep-36748.test.tsx`, `MetadataListCreateDialog.newObjectJoinsAppMenu-36748.test.tsx`, `StudioDesignSurface.backToApp-36501.test.tsx`, `StudioDesignSurface.homeLoop-12513.test.tsx`, `StudioDesignSurface.packageLessFlows-11553.test.tsx`, `StudioDesignSurface.packageListErrorPosture.test.tsx`, `StudioMenu.test.tsx`. - Two of those are absence pins (`queryByRole(... 'Studio home')` and `/Open app|Studio home/` expected null); they now name `App Studio home`, so they still look for the label that exists. <details><summary>Local runs (final head 0519b38)</summary> - The 108 app-shell files and the 9 fields / chatbot / console files ran at 8880f66; the only later change is the `report.builder.savedOutsideApp` revert (pack values only) and the changeset count. The i18n suite, the i18n gates and the derived gates ran on the final tree. - i18n gates (from `ui/`): `check-i18n-en-drift` exit 0 ("24 en value(s) changed … 240 pack value(s) followed"; "20 en value(s) changed … 20 zh value(s) followed"), `check-i18n-call-site-keys` exit 0, `check-i18n-dead-keys` exit 0. - `dispatch-gates.mjs --commands`: 72 derived, 71 exit 0, 1 NOT MEASURED: `pnpm --filter @objectstack/spec run check:skill-examples` exits 3 (PREREQUISITE NOT MET, it reads a built client SDK this worktree did not build). `--ran` reconciliation: 72 accounted, 0 unrun. CI runs it. - `overlap-check.mjs` at 0519b38: clean against origin/main 4ebe9a1 and the 5 open PRs that share files (#38318, #38304, #38285, #38284, #38204). - `vitest run packages/i18n/` (from `ui/`): Test Files 110 passed (110), Tests 1874 passed, 13 skipped. - `vitest run` on the 9 fields / plugin-chatbot / console StudioRoute files: Test Files 9 passed (9), Tests 119 passed (119). - `vitest run` on the 108 app-shell test files that name these sentences (assertions or fixtures): Test Files 108 passed (108), Tests 1409 passed (1409). - The full `fields`, `plugin-chatbot` and console runs did not finish inside the container's command limit and are left to CI (NOT MEASURED locally). </details> <details><summary>Ablation</summary> - Put `zh-Hans` `common.editInStudio` back to 「在 Studio 中编辑」: `residue-namespaces-3546.test.tsx` goes red, 2 failed, `expected '在 Studio 中编辑' to be '在应用搭建中编辑'`. Restored, green. - Put the `chatbot.draftReview.hint` inline default back to the old `en` sentence: `check-i18n-call-site-keys` exits 1, `DraftReviewCard.tsx:113:10 [default-value-drift] chatbot.draftReview.hint`. Restored, exit 0. </details> ## Acceptance notes - **Residue grep after the change**: walking the loaded catalogues key by key (case-insensitive), the only value left that names Studio outside "App Studio" / 应用搭建 is `report.builder.savedOutsideApp`, left on purpose (next note). Each of the 10 hand-edited packs changed exactly the same 24 keys, both `studio` catalogues the same 20, and no key was added or removed. - **`report.builder.savedOutsideApp` is left unchanged** (seat amendment to the claim): PR #38204 removes its last use and a follow-up on #38149 deletes the key, so renaming it here would only conflict. - **Not in this PR, filed by the seat** (claim ruling Q3): five Chinese strings in `packages/platform-objects` generated translations still say Studio (`zh-CN.metadata-forms.generated.ts` and `zh-CN.objects.generated.ts`). They are generated from spec form help and the `sys_email` field help, outside `domain:ui`. - **Positional fallbacks are not paired by the call-site gate**: `tt(key, 'fallback')` in `StudioReturnButton.tsx` and `DashboardView.tsx` were updated by hand here; reverting one of them leaves `check-i18n-call-site-keys` at exit 0 (measured). Noted, not filed. - The docs pages' other prose mentions of "Studio" are left as the shorthand for the surface (seat ruling Q2 A; ADR-0084:368 uses it the same way). ## 44 keys, before and after <details><summary>en and zh values</summary> | # | Catalogue | Key | en before → after | zh before → after | |--:|:--|:--|:--|:--| | 1 | main | `capability.label.studio_access` | Studio Access → **App Studio Access** | 访问 Studio → **访问应用搭建** | | 2 | main | `common.editInStudio` | Edit in studio → **Edit in App Studio** | 在 Studio 中编辑 → **在应用搭建中编辑** | | 3 | main | `studioReturn.close` | Back to Studio → **Back to App Studio** | 返回 Studio → **返回应用搭建** | | 4 | main | `studioReturn.closeLabel` | Close and go back to the Studio list → **Close and go back to the App Studio list** | 关闭并返回 Studio 列表 → **关闭并返回应用搭建列表** | | 5 | main | `dashboard.inPageEdit.pendingDraft` | This dashboard has unpublished changes in Studio. Publish or discard them there, then edit it here. → **This dashboard has unpublished changes in App Studio. Publish or discard them there, then edit it here.** | 这个仪表盘在 Studio 里有未发布的改动。请先在那里发布或放弃,再在这里编辑。 → **这个仪表盘在应用搭建里有未发布的改动。请先在那里发布或放弃,再在这里编辑。** | | 6 | main | `console.studio.accessRequired` | You need Studio access to open Studio. An administrator can grant it with a permission set in Setup → Permission Set Assignment. → **You need App Studio access to open App Studio. An administrator can grant it with a permission set in Setup → Permission Set Assignment.** | 你需要 Studio 访问权限才能打开 Studio。管理员可以在“设置 → 权限集分配”中通过权限集授予。 → **你需要应用搭建访问权限才能打开应用搭建。管理员可以在“设置 → 权限集分配”中通过权限集授予。** | | 7 | main | `designMode.menu.pendingDraft` | This app has unpublished changes in Studio. Publish or discard them there, then save again. → **This app has unpublished changes in App Studio. Publish or discard them there, then save again.** | 这个应用在 Studio 里有未发布的改动。请先在那里发布或丢弃,再保存。 → **这个应用在应用搭建里有未发布的改动。请先在那里发布或丢弃,再保存。** | | 8 | main | `designMode.menu.translationPendingDraft` | This app's menu names in this language have unpublished changes in Studio. Publish or discard them there, then save again. → **This app's menu names in this language have unpublished changes in App Studio. Publish or discard them there, then save again.** | 这个应用在当前语言下的菜单名称在 Studio 里有未发布的改动。请先在那里发布或放弃,再保存。 → **这个应用在当前语言下的菜单名称在应用搭建里有未发布的改动。请先在那里发布或放弃,再保存。** | | 9 | main | `designMode.menu.newItemLeft` | The new dashboard "{{name}}" could not be removed again; remove it in Studio. → **The new dashboard "{{name}}" could not be removed again; remove it in App Studio.** | 新建的仪表盘「{{name}}」没能删除,请在 Studio 里删除它。 → **新建的仪表盘「{{name}}」没能删除,请在应用搭建里删除它。** | | 10 | main | `designMode.pins.pendingDraft` | This object has unpublished changes in Studio. Publish or discard them there, then save again. → **This object has unpublished changes in App Studio. Publish or discard them there, then save again.** | 这个对象在 Studio 里有未发布的改动。请先在那里发布或丢弃,再保存。 → **这个对象在应用搭建里有未发布的改动。请先在那里发布或丢弃,再保存。** | | 11 | main | `designMode.recordTabs.pendingDraft` | This object has unpublished changes in Studio. Publish or discard them there, then save again. → **This object has unpublished changes in App Studio. Publish or discard them there, then save again.** | 此对象在 Studio 中有未发布的改动。请先在那里发布或丢弃,再保存。 → **此对象在应用搭建中有未发布的改动。请先在那里发布或丢弃,再保存。** | | 12 | main | `empty.recordPagePlacesNoComponentDescription` | The record page "{{name}}" places no component in its regions, so it shows nothing for any record. An administrator can fix it in Studio: add components to a region, make the page slotted to show the default record page, or delete the page so the default record page shows. → **The record page "{{name}}" places no component in its regions, so it shows nothing for any record. An administrator can fix it in App Studio: add components to a region, make the page slotted to show the default record page, or delete the page so the default record page shows.** | 记录页 “{{name}}” 的区域中没有放置任何组件,因此对任何记录都不显示内容。管理员可以在 Studio 中修复:向某个区域添加组件、将页面设为 slotted 以显示默认记录页,或删除该页面以显示默认记录页。 → **记录页 “{{name}}” 的区域中没有放置任何组件,因此对任何记录都不显示内容。管理员可以在应用搭建中修复:向某个区域添加组件、将页面设为 slotted 以显示默认记录页,或删除该页面以显示默认记录页。** | | 13 | main | `empty.recordPagePlacesNoComponentDescriptionUnnamed` | This record page places no component in its regions, so it shows nothing for any record. An administrator can fix it in Studio: add components to a region, make the page slotted to show the default record page, or delete the page so the default record page shows. → **This record page places no component in its regions, so it shows nothing for any record. An administrator can fix it in App Studio: add components to a region, make the page slotted to show the default record page, or delete the page so the default record page shows.** | 该记录页的区域中没有放置任何组件,因此对任何记录都不显示内容。管理员可以在 Studio 中修复:向某个区域添加组件、将页面设为 slotted 以显示默认记录页,或删除该页面以显示默认记录页。 → **该记录页的区域中没有放置任何组件,因此对任何记录都不显示内容。管理员可以在应用搭建中修复:向某个区域添加组件、将页面设为 slotted 以显示默认记录页,或删除该页面以显示默认记录页。** | | 14 | main | `empty.appMenuEmptyDescription` | Create objects for this app in Studio and they join its menu, or add entries in Design layout. → **Create objects for this app in App Studio and they join its menu, or add entries in Design layout.** | 在 Studio 里为这个应用新建对象,它们会自动加入菜单;也可以在设计布局里添加。 → **在应用搭建里为这个应用新建对象,它们会自动加入菜单;也可以在设计布局里添加。** | | 15 | main | `empty.openInStudio` | Open in Studio → **Open in App Studio** | 在 Studio 中打开 → **在应用搭建中打开** | | 16 | main | `chatbot.draftReview.hint` | Nothing is published yet. Review the drafts and publish them in Studio. → **Nothing is published yet. Review the drafts and publish them in App Studio.** | 还没有发布。请在 Studio 中审阅并发布这些草稿。 → **还没有发布。请在应用搭建中审阅并发布这些草稿。** | | 17 | main | `chatbot.draftReview.reviewAndPublishAria` | Review and publish the drafts of package {{name}} in Studio → **Review and publish the drafts of package {{name}} in App Studio** | 在 Studio 中审阅并发布包 {{name}} 的草稿 → **在应用搭建中审阅并发布包 {{name}} 的草稿** | | 18 | main | `chatbot.draftReview.reviewAria` | Review the draft {{name}} in Studio → **Review the draft {{name}} in App Studio** | 在 Studio 中审阅草稿 {{name}} → **在应用搭建中审阅草稿 {{name}}** | | 19 | main | `packagedAutomation.actionsSubtitle` | Actions shipped by installed packages. Turn one off for this deployment and it stops running everywhere it is offered. Authoring your own action alongside it stays open in Studio. → **Actions shipped by installed packages. Turn one off for this deployment and it stops running everywhere it is offered. Authoring your own action alongside it stays open in App Studio.** | 由已安装软件包提供的动作。在本部署中停用后,它在所有提供它的位置都不再运行。你仍然可以在 Studio 中另行编写自己的动作。 → **由已安装软件包提供的动作。在本部署中停用后,它在所有提供它的位置都不再运行。你仍然可以在应用搭建中另行编写自己的动作。** | | 20 | main | `packagedAutomation.actionsEmptyBody` | No installed package declares an action on this deployment. Actions you author yourself live in Studio. → **No installed package declares an action on this deployment. Actions you author yourself live in App Studio.** | 本部署中没有任何已安装软件包声明动作。你自己编写的动作在 Studio 中。 → **本部署中没有任何已安装软件包声明动作。你自己编写的动作在应用搭建中。** | | 21 | main | `publicFormsSetup.designHint` | Switch a form off to stop taking submissions; its address then opens nothing. Forms are designed in Studio. → **Switch a form off to stop taking submissions; its address then opens nothing. Forms are designed in App Studio.** | 关掉一个表单就不再接收提交,它的地址也打不开了。表单的设计在 Studio 里做。 → **关掉一个表单就不再接收提交,它的地址也打不开了。表单的设计在应用搭建里做。** | | 22 | main | `publicFormsSetup.emptyBody` | Public forms are designed in Studio. Once an app has one, it is listed here. → **Public forms are designed in App Studio. Once an app has one, it is listed here.** | 对外表单在 Studio 里设计。应用里有了对外表单,就会列在这里。 → **对外表单在应用搭建里设计。应用里有了对外表单,就会列在这里。** | | 23 | main | `publicFormsSetup.pendingDraft` | {{name}} has unpublished changes in Studio. Publish or discard them there first. → **{{name}} has unpublished changes in App Studio. Publish or discard them there first.** | {{name}} 在 Studio 里有未发布的修改,请先在那里发布或放弃。 → **{{name}} 在应用搭建里有未发布的修改,请先在那里发布或放弃。** | | 24 | main | `publicFormsSetup.switchedOnEarlierVersion` | {{name}} is on. It stays on the app's earlier version {{version}}, which this environment customized; to take the app's current form, restore the original in Studio. → **{{name}} is on. It stays on the app's earlier version {{version}}, which this environment customized; to take the app's current form, restore the original in App Studio.** | {{name}} 已开启。它仍沿用本环境定制时的应用旧版本 {{version}};如需使用应用当前版本的表单,请在 Studio 中恢复原样。 → **{{name}} 已开启。它仍沿用本环境定制时的应用旧版本 {{version}};如需使用应用当前版本的表单,请在应用搭建中恢复原样。** | | 25 | studio | `perm.field.systemCapabilitiesHelp` | Platform / org capabilities granted to holders of this set (e.g. Studio access, user management). Designed here; Setup shows them read-only. → **Platform / org capabilities granted to holders of this set (e.g. App Studio access, user management). Designed here; Setup shows them read-only.** | 授予此权限集持有者的平台/组织能力(如 Studio 访问、用户管理)。在此设计,Setup 中只读展示。 → **授予此权限集持有者的平台/组织能力(如应用搭建访问、用户管理)。在此设计,Setup 中只读展示。** | | 26 | studio | `engine.studio.refusal.draftUnreadable` | This item has an unpublished draft you are not allowed to read, so Studio has not opened it: editing the published version here would overwrite that draft. Someone who holds the permissions the draft requires can edit or publish it. Details show what the server answered. → **This item has an unpublished draft you are not allowed to read, so App Studio has not opened it: editing the published version here would overwrite that draft. Someone who holds the permissions the draft requires can edit or publish it. Details show what the server answered.** | 此项有一份您无权读取的未发布草稿,因此 Studio 没有打开它:在这里编辑已发布版本会覆盖那份草稿。持有该草稿所需权限的人可以编辑或发布它。详情中有服务器的答复。 → **此项有一份您无权读取的未发布草稿,因此应用搭建没有打开它:在这里编辑已发布版本会覆盖那份草稿。持有该草稿所需权限的人可以编辑或发布它。详情中有服务器的答复。** | | 27 | studio | `engine.inspector.servedLabel.kept` | Readers in this language see “{served}”: a translation of this name comes ahead of the text saved here. To change what they see, edit that translation in Studio › All metadata › Translation. → **Readers in this language see “{served}”: a translation of this name comes ahead of the text saved here. To change what they see, edit that translation in App Studio › All metadata › Translation.** | 使用该语言的读者看到的是「{served}」:这个名称有一条译文,排在这里保存的文字之前。要改读者看到的文字,请到 Studio ›「全部元数据」›「翻译」里修改这条译文。 → **使用该语言的读者看到的是「{served}」:这个名称有一条译文,排在这里保存的文字之前。要改读者看到的文字,请到应用搭建 ›「全部元数据」›「翻译」里修改这条译文。** | | 28 | studio | `engine.inspector.servedLabel.ifKept` | Readers in this language now see the translation “{served}”. If it is kept in this environment’s own translations or in its customization package, they keep seeing it after you save. To change it, edit that translation in Studio › All metadata › Translation. → **Readers in this language now see the translation “{served}”. If it is kept in this environment’s own translations or in its customization package, they keep seeing it after you save. To change it, edit that translation in App Studio › All metadata › Translation.** | 使用该语言的读者现在看到的是译文「{served}」。如果这条译文存放在本环境自己的翻译或定制包的翻译里,保存后读者仍会看到它。要改它,请到 Studio ›「全部元数据」›「翻译」里修改这条译文。 → **使用该语言的读者现在看到的是译文「{served}」。如果这条译文存放在本环境自己的翻译或定制包的翻译里,保存后读者仍会看到它。要改它,请到应用搭建 ›「全部元数据」›「翻译」里修改这条译文。** | | 29 | studio | `engine.packages.admin.description` | Turn the packages installed in this system on or off, or delete one. A new package opens in Studio, where it is designed. → **Turn the packages installed in this system on or off, or delete one. A new package opens in App Studio, where it is designed.** | 启用、停用或删除本系统中安装的软件包。新建的软件包会在 Studio 中打开,在那里设计。 → **启用、停用或删除本系统中安装的软件包。新建的软件包会在应用搭建中打开,在那里设计。** | | 30 | studio | `engine.packages.detail.openInStudio` | Open in Studio → **Open in App Studio** | 在 Studio 中打开 → **在应用搭建中打开** | | 31 | studio | `engine.packages.customizations.customize` | Customize in Studio → **Customize in App Studio** | 在 Studio 中定制 → **在应用搭建中定制** | | 32 | studio | `engine.packages.customizations.customizeTitle` | Open this app in Studio, where its items are customized → **Open this app in App Studio, where its items are customized** | 在 Studio 中打开这个应用,在那里定制它的条目 → **在应用搭建中打开这个应用,在那里定制它的条目** | | 33 | studio | `engine.packages.customizations.rowTitle` | Open {name} in Studio → **Open {name} in App Studio** | 在 Studio 中打开 {name} → **在应用搭建中打开 {name}** | | 34 | studio | `engine.studio.data.appMenu.pendingDraft` | The app has unpublished changes in Studio. → **The app has unpublished changes in App Studio.** | 这个应用在 Studio 里有尚未发布的改动。 → **这个应用在应用搭建里有尚未发布的改动。** | | 35 | studio | `engine.studio.desktopHint` | Studio is built for a desktop screen. → **App Studio is built for a desktop screen.** | Studio 专为桌面屏幕设计。 → **应用搭建专为桌面屏幕设计。** | | 36 | studio | `engine.studio.notFound.pillar` | This page does not exist. Studio has no "{pillar}" section; pick Data, Automations, Interfaces, Access or All metadata above. → **This page does not exist. App Studio has no "{pillar}" section; pick Data, Automations, Interfaces, Access or All metadata above.** | 页面不存在。Studio 没有“{pillar}”这一栏,请在上方选择数据、自动化、界面、权限或全部元数据。 → **页面不存在。应用搭建没有“{pillar}”这一栏,请在上方选择数据、自动化、界面、权限或全部元数据。** | | 37 | studio | `engine.studio.menu.label` | Studio menu → **App Studio menu** | Studio 菜单 → **应用搭建菜单** | | 38 | studio | `engine.setup.accessDirectory.notAllowed` | Opening this page needs the {capability} capability, the one Studio asks. → **Opening this page needs the {capability} capability, the one App Studio asks.** | 打开此页需要 {capability} 权限,即进入 Studio 所需的权限。 → **打开此页需要 {capability} 权限,即进入应用搭建所需的权限。** | | 39 | studio | `engine.studio.backToAppTitle` | Leave Studio and go back to {app} → **Leave App Studio and go back to {app}** | 离开 Studio,回到 {app} → **离开应用搭建,回到 {app}** | | 40 | studio | `engine.studio.backToAppTitleNoApp` | Leave Studio and go back to your apps → **Leave App Studio and go back to your apps** | 离开 Studio,回到你的应用 → **离开应用搭建,回到你的应用** | | 41 | studio | `engine.studio.customize.pendingDraft` | This item has unpublished changes in {package}. Publish or discard them in Studio, then edit it here. → **This item has unpublished changes in {package}. Publish or discard them in App Studio, then edit it here.** | 此项在 {package} 中有未发布的更改。请先在 Studio 中发布或丢弃它们,再在这里编辑。 → **此项在 {package} 中有未发布的更改。请先在应用搭建中发布或丢弃它们,再在这里编辑。** | | 42 | studio | `engine.catalog.readOnly.walled` | Read-only for organization administrators. On this deployment the platform operator defines {type} items for every organization in Studio; your organization assigns them. → **Read-only for organization administrators. On this deployment the platform operator defines {type} items for every organization in App Studio; your organization assigns them.** | 组织管理员只能查看。此部署中由平台运营方在 Studio 中为所有组织定义{type};您的组织负责分配。 → **组织管理员只能查看。此部署中由平台运营方在应用搭建中为所有组织定义{type};您的组织负责分配。** | | 43 | studio | `engine.studio.landingHome` | Studio home → **App Studio home** | Studio 首页 → **应用搭建首页** | | 44 | studio | `engine.studio.landing.customizations.pairTitle` | Open the customization package {pair} in Studio → **Open the customization package {pair} in App Studio** | 在 Studio 中打开定制包 {pair} → **在应用搭建中打开定制包 {pair}** | </details> ## Verification Read first, in risk order: 1. `ui/packages/i18n/src/locales/zh-Hans.ts`: the Chinese sentences, where the old Latin word took spaces with it. 2. `ui/packages/i18n/src/locales/de.ts`: the only pack with compounds (`App-Studio-Zugriff`, `App-Studio-Liste`). 3. `ui/packages/i18n/src/namespaces/studio/zh.ts`: the Studio front's own sentences (menu label, the way back, the refusal). Two-minute check: open `/_console/studio/PACKAGE_ID` in a Chinese UI. The left menu's accessible name is 「应用搭建菜单」, and the way back's tooltip reads 「离开应用搭建,回到 …」; in an English UI they read "App Studio menu" and "Leave App Studio and go back to …". --- _Generated by [Claude Code](https://claude.ai/code/session_01L9qibz59TqsYwACVq1LPf9)_ --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent c6a1328 commit c573d28

42 files changed

Lines changed: 376 additions & 362 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
'@object-ui/i18n': patch
3+
'@object-ui/app-shell': patch
4+
'@object-ui/fields': patch
5+
'@object-ui/plugin-chatbot': patch
6+
'@object-ui/console': patch
7+
---
8+
9+
fix(i18n): sentences that name Studio read 应用搭建 in Chinese and App Studio in the other languages
10+
11+
Clause-②: no
12+
Metadata-protocol: none
13+
14+
The brand, the app name and the doors into Studio already read 应用搭建 / App Studio; the sentences that mention it still said "Studio", so a Chinese interface mixed the two names. Every such sentence now names the builder by its display name: 应用搭建 in the Chinese packs (繁體 應用搭建, regenerated), App Studio in every other pack, with each sentence's wording otherwise unchanged. That covers 24 keys of the UI packs (for example `common.editInStudio`, `console.studio.accessRequired`, `empty.openInStudio`, the "unpublished changes in Studio" notices and the `capability.label.studio_access` capability label) and 20 keys of the `studio` namespace (for example `engine.studio.menu.label`, `engine.studio.backToAppTitle` and `engine.studio.refusal.draftUnreadable`). The inline `defaultValue` fallbacks paired with those `en` values follow. Display text only: the `/studio` address, the `studio.access` capability name, package names and identifiers are unchanged.

‎content/docs/build-without-code.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ You do not have to write metadata files to build on this platform. **Console**,
1919

2020
## Studio — where the app is designed
2121

22-
From any app, **"Design in Studio"** opens the same application in design mode. Studio is organized around four pillars:
22+
From any app, **"Design in App Studio"** opens the same application in design mode. Studio is organized around four pillars:
2323

2424
| Pillar | What you manage there |
2525
|---|---|

‎content/docs/ui/apps.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ import { defineApp } from '@objectstack/spec';
678678

679679
const studioApp = defineApp({
680680
name: 'studio',
681-
label: 'Studio',
681+
label: 'App Studio',
682682
icon: 'hammer',
683683

684684
contextSelectors: [

‎ui/apps/console/src/components/StudioRoute.test.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ const pathname = () => screen.getByTestId('pathname').textContent;
154154
* answers. That the packs answer in the caller's language is the sibling
155155
* file's pin.
156156
*/
157-
const NOTICE = 'You need Studio access to open Studio. An administrator can grant it with a permission set in Setup → Permission Set Assignment.';
157+
const NOTICE = 'You need App Studio access to open App Studio. An administrator can grant it with a permission set in Setup → Permission Set Assignment.';
158158
/** jsdom's window is 1024 px wide: a desktop, whose way home opens an app's start page. */
159159
const WAY_HOME = 'Back to app start page';
160160
/** A phone's way home, to its app list. */

‎ui/apps/console/src/components/StudioRoute.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ function StudioAccessRequired({ home }: { home: string }) {
112112
</div>
113113
<EmptyTitle>
114114
{t('console.studio.accessRequired', {
115-
defaultValue: 'You need Studio access to open Studio. An administrator can grant it with a permission set in Setup → Permission Set Assignment.',
115+
defaultValue: 'You need App Studio access to open App Studio. An administrator can grant it with a permission set in Setup → Permission Set Assignment.',
116116
})}
117117
</EmptyTitle>
118118
<div className="mt-4">

‎ui/packages/app-shell/src/console/AppNoAccessEmptyState.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,12 +150,12 @@ export function AppNoAccessEmptyState({ app, setupPath, reason = 'no-navigation'
150150
defaultValue: '{{app}} has nothing in its menu yet',
151151
})}
152152
description={t('empty.appMenuEmptyDescription', {
153-
defaultValue: 'Create objects for this app in Studio and they join its menu, or add entries in Design layout.',
153+
defaultValue: 'Create objects for this app in App Studio and they join its menu, or add entries in Design layout.',
154154
})}
155155
action={
156156
<Button asChild variant="outline">
157157
<Link to={studioHomePath(packageId)} data-testid="app-empty-menu-open-studio">
158-
{t('empty.openInStudio', { defaultValue: 'Open in Studio' })}
158+
{t('empty.openInStudio', { defaultValue: 'Open in App Studio' })}
159159
</Link>
160160
</Button>
161161
}

‎ui/packages/app-shell/src/layout/DesignModeHeaderPinsPanel.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export default function HeaderPinsPanel({ objectDef, page, actions, builtins = [
7777
defaultValue: "This object's package is not listed, so its header buttons cannot be saved.",
7878
}),
7979
pendingDraft: t('designMode.pins.pendingDraft', {
80-
defaultValue: 'This object has unpublished changes in Studio. Publish or discard them there, then save again.',
80+
defaultValue: 'This object has unpublished changes in App Studio. Publish or discard them there, then save again.',
8181
}),
8282
pairNotWritable: t('designMode.pins.pairNotWritable', {
8383
defaultValue: "This app's customization package cannot be written, so its header buttons cannot be saved.",

‎ui/packages/app-shell/src/layout/DesignModeMenu.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ export default function DesignModeMenu({ app, basePath, resolveTargetLabel, reso
281281
defaultValue: "This app's package is not listed, so its menu cannot be saved.",
282282
}),
283283
pendingDraft: t('designMode.menu.pendingDraft', {
284-
defaultValue: 'This app has unpublished changes in Studio. Publish or discard them there, then save again.',
284+
defaultValue: 'This app has unpublished changes in App Studio. Publish or discard them there, then save again.',
285285
}),
286286
noVersion: t('designMode.menu.noVersion', {
287287
defaultValue: "This app's package states no version, so its menu cannot be customized.",
@@ -296,7 +296,7 @@ export default function DesignModeMenu({ app, basePath, resolveTargetLabel, reso
296296
defaultValue: "Someone published this app's menu while you were saving, so nothing was saved. Save again to apply your changes over theirs.",
297297
}),
298298
translationPendingDraft: t('designMode.menu.translationPendingDraft', {
299-
defaultValue: "This app's menu names in this language have unpublished changes in Studio. Publish or discard them there, then save again.",
299+
defaultValue: "This app's menu names in this language have unpublished changes in App Studio. Publish or discard them there, then save again.",
300300
}),
301301
}),
302302
[t],
@@ -540,7 +540,7 @@ export default function DesignModeMenu({ app, basePath, resolveTargetLabel, reso
540540
defaultValue: 'A draft with this name is already pending. Try again.',
541541
}),
542542
itemLeft: t('designMode.menu.newItemLeft', {
543-
defaultValue: 'The new dashboard "{{name}}" could not be removed again; remove it in Studio.',
543+
defaultValue: 'The new dashboard "{{name}}" could not be removed again; remove it in App Studio.',
544544
name: label,
545545
}),
546546
};

‎ui/packages/app-shell/src/views/DashboardView.inPageEdit-36372.test.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ describe('DashboardView in-page edit (objectstack#36372)', () => {
355355
await waitFor(() => expect(toasts.error).toHaveLength(1));
356356
expect(screen.queryByTestId('dashboard-editing-badge')).not.toBeInTheDocument();
357357
expect(toasts.error).toHaveLength(1);
358-
expect(String((toasts.error[0] as unknown[])[0])).toContain('unpublished changes in Studio');
358+
expect(String((toasts.error[0] as unknown[])[0])).toContain('unpublished changes in App Studio');
359359
expect(client.value.save).not.toHaveBeenCalled();
360360
});
361361

‎ui/packages/app-shell/src/views/DashboardView.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ export function DashboardView({ dataSource }: { dataSource?: any }) {
286286
const startEdit = async () => {
287287
const refused = await edit.open();
288288
if (!refused) return;
289-
if (refused.reason === 'pending-draft') toast.error(tt('dashboard.inPageEdit.pendingDraft', 'This dashboard has unpublished changes in Studio. Publish or discard them there, then edit it here.'));
289+
if (refused.reason === 'pending-draft') toast.error(tt('dashboard.inPageEdit.pendingDraft', 'This dashboard has unpublished changes in App Studio. Publish or discard them there, then edit it here.'));
290290
else if (refused.reason === 'walled') toast.error(tt('dashboard.inPageEdit.walled', "On this deployment, only the platform operator can customize an installed app's dashboard."));
291291
else if (refused.reason === 'no-version') toast.error(tt('dashboard.inPageEdit.noVersion', 'The package list does not say which version of this app is installed, so its dashboard cannot be customized here.'));
292292
else if (refused.reason === 'no-package') toast.error(tt('dashboard.inPageEdit.noPackage', "This dashboard cannot be saved here: its app has no package this account can customize."), refused.detail ? { description: refused.detail } : undefined);
@@ -296,7 +296,7 @@ export function DashboardView({ dataSource }: { dataSource?: any }) {
296296
try {
297297
const outcome = await edit.save();
298298
if (outcome === 'published') toast.success(tt('dashboard.inPageEdit.saved', 'Dashboard saved'));
299-
else if (outcome === 'pending-draft') toast.error(tt('dashboard.inPageEdit.pendingDraft', 'This dashboard has unpublished changes in Studio. Publish or discard them there, then edit it here.'));
299+
else if (outcome === 'pending-draft') toast.error(tt('dashboard.inPageEdit.pendingDraft', 'This dashboard has unpublished changes in App Studio. Publish or discard them there, then edit it here.'));
300300
else toast.error(tt('dashboard.inPageEdit.saveFailed', 'The dashboard could not be saved'));
301301
} catch (err: any) {
302302
toast.error(tt('dashboard.inPageEdit.saveFailed', 'The dashboard could not be saved'), { description: err?.message || String(err) });

0 commit comments

Comments
 (0)