Repository navigation
fix(i18n): say 粘贴 and 推送/拉取/获取 on the phone, add missing alreadyCurrent, drop the Computer Use window's final 。 in zh - #52317
Conversation
[Low impact] The PR appears safe to merge. SummaryUpdates Simplified Chinese copy on the phone and in the macOS Computer Use permission window.
Reviews (3) · Last reviewed commit: "fix(i18n): say 粘贴 and 推送/拉取/获取 on the ph..." · Reviewed by Greptile |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
…ndow's final 。 in zh The phone's Simplified Chinese catalog left the More keys sheet's Paste and the Git menu's fetch in English, and used the one-character fragments 推/拉 for Push/Pull. Use the desktop's terms 粘贴, 推送, 拉取 and 获取, and add the missing host.updates.alreadyCurrent value so the update sheet no longer falls back to English. The macOS Computer Use permission window keeps its zh copy in Swift and still ended five sentences with 。. Drop it to match the zh catalogs. The desktop's demo phone key row keeps Paste as a key name, beside Esc, Tab and Ctrl+C. Refs stablyai#32207
06a7b13 to
e4874f9
Compare
ELI5
In Simplified Chinese, some buttons in the phone app showed English words or cut-off words. The terminal's More keys sheet said "Paste", and the Git menu said 推 / 拉 / fetch. The desktop app already says 粘贴 / 推送 / 拉取 / 获取. This PR makes the phone use those same full words. It also translates the phone's "Orca is up to date" message, which had no Chinese text yet. Last, it removes the final 。 from five sentences in the macOS Computer Use permission window. The rest of the Chinese text already leaves it off.
What Changed
Phone (
mobile/src/i18n/locales/zh.json, 6 values changed and 1 added)session.terminalMoreKeys.pastesourceControl.primaryAction.pushsourceControl.primaryAction.pullsourceControl.remoteDropdown.pushsourceControl.remoteDropdown.pullsourceControl.remoteDropdown.fetchhost.updates.alreadyCurrentmacOS Computer Use permission window (
native/computer-use-macos/.../PermissionWindowCopy.swift,chinesecopy only)The final 。 is removed from
checkingSubtitle,readySubtitle,permissionSubtitle,dragAccessibilityInstructionanddragScreenshotsInstruction. Nothing else in those strings changes, and English is unchanged.The desktop's demo phone on the mobile page keeps
Paste, because there it is a key name in a row with Esc, Tab and Ctrl+C. That catalog is not touched.Why
host.updates.alreadyCurrentis used inmobile/src/host-screen/identity/updates/HostOrcaUpdateSheet.tsxbut had no zh value. The phone zh catalog is now complete (7,005 of 7,005).Linked Issue
Refs #32207 (localization tracking issue; this is one part of it)
Visual Proof
N/A. This only changes text. The phone sheets are native screens and the permission window is a Swift app, so the component fixtures can't render them. The tables above list every value that changed.
Testing
Reproduced on main:
verify-mobile-localizationreportszh.json coverage: 7004/7005 translated, 1 missing(host.updates.alreadyCurrent). With this PR it reports 7005/7005, 0 missing, and 7,526 call sites verified.Ran a scan of every Paste/Push/Pull/Fetch key. Mobile zh now uses 粘贴/推送/拉取/获取, and the desktop phone-demo key row keeps Paste as a key name.
Passing:
verify:localization-catalogs,verify:localization-protected-copy,oxfmt --checkon the mobile catalog,swiftc -parseonPermissionWindowCopy.swift, andvitest src/shared/bots/bot-template-text.test.ts(4/4).CI static gates on the touched files: ast-grep is clean, and the changed-code quality check reports no changed JS/TS. The oxlint configs have no lintable files here (.json and .swift).
Checked on macOS only, using catalogs and the Swift parse. Not rendered on a phone, and the Swift app was not built.
I manually tested these changes locally
Automated tests added/updated, or explained why not below
Every added test fails without this change and avoids the test anti-patterns
No new tests. These are catalog and copy values, and the localization verifiers already check keys and placeholders.
Performance
None, because only string values change and one catalog key is added. No new code runs at startup, polls, or touches disk, IPC or subprocesses.
Risk
Only Simplified Chinese users see a difference: the phone's Paste/Push/Pull/Fetch labels, the update sheet, and the macOS Computer Use permission window. The riskiest part is that the longer labels (two characters instead of one) could get cut off. This is unlikely, because the counted variants of the same buttons are already longer. Older paired desktops or phones are not affected, since the catalogs ship with each app. To back it out, revert this commit.
Level: Low
Review
Reviewed for terminology against desktop zh, key placement and placeholders, and Swift literal syntax. Nothing blocking was found. Two follow-ups are outside this PR: the desktop zh shortcut search keyword
7f1b38f59amaps "tui" to 推, and zh-Hant is still missing mobile keys.Agent skill upstream boundary
Notes
Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance
Original fix by @x-Ai in #52317. Their commits are squashed into one, with authorship kept.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)