Skip to content

Commit 17748fb

Browse files
committed
chore(i18n): remove the studio rows no screen reads (typeCount, the app-worded newApp rows)
engine.studio.menu.typeCount lost its reader when the Studio menu's group headers stopped counting types; the app-worded engine.studio.newApp rows (title, description, advancedHint, id, help.*, nsDerived, created, exists, failed) lost theirs when the New Package dialog stopped rewording itself for an app. ui/scripts/check-i18n-dead-keys.mjs lists exactly these 17 rows as confirmed, and a grep outside the catalogue finds no reader. nameTaken and appFailed are still read by PackageFormDialog and stay. None of the 17 shipped: @object-ui/i18n@18.6.0's dist/namespaces/studio en.js and zh.js carry none of them (control: engine.studio.changes is there). Claude-Session: https://claude.ai/code/session_01QSeKYmjeYX4T3tqfUCDu4K Co-authored-by: Claude <noreply@anthropic.com>
1 parent 80da086 commit 17748fb

2 files changed

Lines changed: 3 additions & 41 deletions

File tree

‎ui/packages/i18n/src/namespaces/studio/en.ts‎

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3550,7 +3550,6 @@ const STUDIO_EN: Record<string, string> = {
35503550
'engine.studio.menu.noMatches': 'Nothing in the menu matches.',
35513551
'engine.studio.menu.expand': 'Show the menu',
35523552
'engine.studio.menu.collapse': 'Hide the menu',
3553-
'engine.studio.menu.typeCount': '{count} types',
35543553
'engine.studio.menu.itemCount': '{count} items',
35553554
'engine.studio.menu.orgFlows': 'Organization flows',
35563555
'engine.studio.menu.owd': 'Default sharing',
@@ -3651,27 +3650,8 @@ const STUDIO_EN: Record<string, string> = {
36513650
'engine.studio.org.description': 'The organization’s own flows that belong to no package, such as a clone of a packaged flow. They open editable.',
36523651
// ADR-0146 D11 — no link out: no Setup page copies a flow into this scope any more.
36533652
'engine.studio.org.none': 'No flows outside a package. To change a packaged flow, open its package and use New similar.',
3654-
// objectstack#36748 — the new-app step of the package dialog (`newAppDoor.ts`).
3655-
// The Studio home's app-worded dialog was removed (objectstack#36908); the
3656-
// create-package dialog's 「同时创建应用」 (objectstack#37134) runs the step
3657-
// and reads `nameTaken` and `appFailed`. The app-worded rows have no reader
3658-
// since; they stay as released rows.
3659-
'engine.studio.newApp.title': 'New app',
3660-
'engine.studio.newApp.description': 'Give your app a name; everything else is filled in for you. It opens as soon as it is created.',
3661-
'engine.studio.newApp.advancedHint': 'App ID, namespace, version and type, filled in from the name.',
3662-
'engine.studio.newApp.id': 'App ID',
3663-
'engine.studio.newApp.help.id': 'The app’s unique ID, in reverse-domain form. It is also the app’s address.',
3664-
'engine.studio.newApp.help.name': 'The app’s name, as people see it.',
3665-
'engine.studio.newApp.help.description': 'What the app is for.',
3666-
'engine.studio.newApp.help.namespace': 'A short identifier that starts the name of every object in this app (e.g. “todo” → “todo_task”, “todo_project”).',
3667-
'engine.studio.newApp.help.version': 'The app’s version (semantic versioning).',
3668-
'engine.studio.newApp.help.type': 'The app’s kind.',
3669-
'engine.studio.newApp.help.defaultDatasource': 'Where every object in this app stores its data by default.',
3670-
'engine.studio.newApp.help.dependencies': 'Other apps or modules this app builds on.',
3671-
'engine.studio.newApp.nsDerived': 'Filled in from the app ID until you edit it.',
3672-
'engine.studio.newApp.created': 'Created app “{name}”.',
3673-
'engine.studio.newApp.exists': 'An app with the same ID already exists.',
3674-
'engine.studio.newApp.failed': 'Could not create the app',
3653+
// objectstack#36748 — the new-app step of the package dialog (`newAppDoor.ts`),
3654+
// run by the create-package dialog's 「同时创建应用」 (objectstack#37134).
36753655
'engine.studio.newApp.nameTaken': 'The app “{label}” already uses the identifier “{name}”. Change the namespace under Advanced.',
36763656
'engine.studio.newApp.appFailed': '“{name}” was created, but its app could not go live: {reason}. Use Create app in the Studio top bar to try again.',
36773657
// objectstack#28561 — assignments are Setup's (ADR-0146 D7): the area links

‎ui/packages/i18n/src/namespaces/studio/zh.ts‎

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3134,7 +3134,6 @@ const STUDIO_ZH: Record<string, string> = {
31343134
'engine.studio.menu.noMatches': '菜单里没有匹配的项。',
31353135
'engine.studio.menu.expand': '展开菜单',
31363136
'engine.studio.menu.collapse': '收起菜单',
3137-
'engine.studio.menu.typeCount': '{count} 种类型',
31383137
'engine.studio.menu.itemCount': '{count} 项',
31393138
'engine.studio.menu.orgFlows': '组织级流程',
31403139
'engine.studio.menu.owd': '默认共享',
@@ -3222,24 +3221,7 @@ const STUDIO_ZH: Record<string, string> = {
32223221
'engine.studio.org.hint': '不属于任何软件包的流程',
32233222
'engine.studio.org.description': '本组织自有、不属于任何软件包的流程,例如软件包流程的克隆副本。可直接编辑。',
32243223
'engine.studio.org.none': '没有不属于软件包的流程。要修改软件包中的流程,请打开它所在的软件包,使用“新建类似”。',
3225-
// objectstack#36748 — the package dialog's new-app step: one dialog creates the package and its app.
3226-
// The Studio home that opened it was removed (objectstack#36908); it stays for objectstack#37134.
3227-
'engine.studio.newApp.title': '新建应用',
3228-
'engine.studio.newApp.description': '给应用起个名字,其余都会自动填好。创建后立即可以打开。',
3229-
'engine.studio.newApp.advancedHint': '应用 ID、命名空间、版本和类型,已根据名称自动填写。',
3230-
'engine.studio.newApp.id': '应用 ID',
3231-
'engine.studio.newApp.help.id': '应用的唯一标识,采用反向域名格式,也是应用的访问地址。',
3232-
'engine.studio.newApp.help.name': '大家看到的应用名称。',
3233-
'engine.studio.newApp.help.description': '这个应用是做什么的。',
3234-
'engine.studio.newApp.help.namespace': '简短的命名空间标识;同时是本应用内每个对象名称的强制前缀(例如 “todo” → 对象名 “todo_task”、“todo_project”)。',
3235-
'engine.studio.newApp.help.version': '应用版本(语义化版本号)。',
3236-
'engine.studio.newApp.help.type': '应用的类型。',
3237-
'engine.studio.newApp.help.defaultDatasource': '本应用内所有对象默认存放数据的地方。',
3238-
'engine.studio.newApp.help.dependencies': '这个应用所依赖的其他应用或模块。',
3239-
'engine.studio.newApp.nsDerived': '编辑前会根据应用 ID 自动填写。',
3240-
'engine.studio.newApp.created': '已创建应用「{name}」。',
3241-
'engine.studio.newApp.exists': '已存在相同 ID 的应用。',
3242-
'engine.studio.newApp.failed': '创建应用失败',
3224+
// objectstack#36748 — the package dialog's new-app step, run by 「同时创建应用」 (objectstack#37134).
32433225
'engine.studio.newApp.nameTaken': '应用「{label}」已经在用标识「{name}」。请在“高级”中换一个命名空间。',
32443226
'engine.studio.newApp.appFailed': '「{name}」已创建,但应用没能上线:{reason}。可以在 Studio 顶栏点「创建应用」重试。',
32453227
'engine.studio.area.assignments.position': '此岗位的任职人员在设置中分配。',

0 commit comments

Comments
 (0)