Skip to content

Commit c7aa9cd

Browse files
fix(i18n): zh sign-out menu item reads 退出登录, not 注销 (#26045)
<!-- claude-projects-attribution: {"github_login":"os-steve"} --> _Requested by **Steve** · [project thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi95wmrfZ1NLxKfZkRLtH7cbp)_ Fixes #25871 Clause-②: no Metadata-protocol: none ## What The Chinese (`zh`) pack's `user.logout`, the sign-out item in the console's user menu, read 「注销」. A Chinese reader takes that as "cancel / delete my account". It now reads 「退出登录」, the wording the same pack already uses for signing out (the admin-session `notRestored` message and the `signOut` row). - `ui/packages/i18n/src/locales/zh.ts`: `user.logout` 注销 → 退出登录. No key added or removed; other locales unchanged. - `.changeset/25871-zh-logout-label.md`: `@object-ui/i18n` patch, in the root `.changeset/`. - `scripts/sdui-manifest.record.json`: registry-source hash re-recorded with `node scripts/gen-sdui-manifest-node.mjs` (any `ui/packages/**` source edit moves it). `sdui.manifest.json` itself is byte-identical. ## Premise check At `origin/main` 39a78b1, `git grep -n 注销 -- ui apps packages` has exactly one hit, this row, so no other surface uses 注销 to mean sign-out. ## Verification (head ca2aff6) - `pnpm --filter @object-ui/i18n test --maxWorkers=2`: Test Files 87 passed (87), Tests 1353 passed, 13 skipped. - `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack`: 41 derived commands, each exit 0; `--ran` reconciles "41 run, 0 NOT-MEASURED (a DERIVED zero)". - `node scripts/check-sdui-manifest.mjs`: intact, generated from the in-tree registry as it stands. - Type-check of `@object-ui/i18n` not run locally (a one-string value change); left to CI `Type Check UI`. ## Acceptance notes None. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01BMQ3sr49DvPmm6nkE28YFf --- _Generated by [Claude Code](https://claude.ai/code/session_01BMQ3sr49DvPmm6nkE28YFf)_ --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 365fe5e commit c7aa9cd

3 files changed

Lines changed: 12 additions & 2 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@object-ui/i18n': patch
3+
---
4+
5+
fix(i18n): the Chinese account menu's sign-out item reads 「退出登录」, not 「注销」
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
In the `zh` pack, `user.logout` read 「注销」, which a Chinese reader takes as "delete my account", on the menu every signed-in user opens. It now reads 「退出登录」, the wording the same pack already uses for signing out elsewhere. No key is added or removed; other locales are unchanged.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"package":"ui/packages/i18n","sources":31,"sha256":"9cd75a1d5d100dec0273df9e1018574cc9188811a2af4963f04abc901ca95a9c","manifestSha256":"1f6e1ccb925a678eaa393f9091dfc7d0285e4e3626e0a5c61a5474687debabb7"}
1+
{"package":"ui/packages/i18n","sources":31,"sha256":"57909816bcbfa5661852ecf652392b19d6a1e971a608b07360bfa2399bca11e4","manifestSha256":"1f6e1ccb925a678eaa393f9091dfc7d0285e4e3626e0a5c61a5474687debabb7"}

‎ui/packages/i18n/src/locales/zh.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3420,7 +3420,7 @@ const zh = {
34203420
accountMenu: '账户菜单',
34213421
profile: '个人资料',
34223422
settings: '设置',
3423-
logout: '注销',
3423+
logout: '退出登录',
34243424
preferences: '偏好设置',
34253425
theme: '主题',
34263426
language: '语言',

0 commit comments

Comments
 (0)