Skip to content

fix(i18n): say 粘贴 and 推送/拉取/获取 on the phone, add missing alreadyCurrent, drop the Computer Use window's final 。 in zh - #52317

Merged
nwparker merged 1 commit into
stablyai:mainfrom
x-Ai:fix/i18n-zh-phone-git-paste
Nov 29, 2026
Merged

nwparker merged 1 commit into
stablyai:mainfrom
x-Ai:fix/i18n-zh-phone-git-paste

Conversation

@x-Ai

@x-Ai x-Ai commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

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)

Key English Before After
session.terminalMoreKeys.paste Paste Paste 粘贴
sourceControl.primaryAction.push Push 推 推送
sourceControl.primaryAction.pull Pull 拉 拉取
sourceControl.remoteDropdown.push Push 推 推送
sourceControl.remoteDropdown.pull Pull 拉 拉取
sourceControl.remoteDropdown.fetch Fetch fetch 获取
host.updates.alreadyCurrent Orca is up to date (missing, so it showed in English) Orca 已是最新版本

macOS Computer Use permission window (native/computer-use-macos/.../PermissionWindowCopy.swift, chinese copy only)

The final 。 is removed from checkingSubtitle, readySubtitle, permissionSubtitle, dragAccessibilityInstruction and dragScreenshotsInstruction. 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

  • The desktop's source control buttons and menu already say 推送 / 拉取 / 获取. The phone's own counted labels already say 推送 {{count}} 个提交 and 拉取 {{count}} 个提交, so the full words fit. On their own, 推 and 拉 read as "shove" and "drag".
  • Paste and fetch were never translated. In the More keys sheet, Paste is an action listed beside 照片, so it should be 粘贴, as in the desktop's menus.
  • host.updates.alreadyCurrent is used in mobile/src/host-screen/identity/updates/HostOrcaUpdateSheet.tsx but had no zh value. The phone zh catalog is now complete (7,005 of 7,005).
  • The zh catalogs leave the final 。 off standalone sentences: only 18 of 24,818 desktop zh values and 26 of 7,005 mobile zh values end with one. This window's copy lives in Swift, so earlier catalog passes missed it.

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-localization reports zh.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 --check on the mobile catalog, swiftc -parse on PermissionWindowCopy.swift, and vitest 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 7f1b38f59a maps "tui" to 推, and zh-Hant is still missing mobile keys.

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

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

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • I stated the risk: what could break, for whom, and how to back it out
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

@x-Ai
x-Ai requested a review from brennanb2025 as a code owner November 29, 2026 05:58
@greptile-apps

greptile-apps Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Confidence Score: 5/5 · The PR appears safe to merge.RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge.

Summary

Updates Simplified Chinese copy on the phone and in the macOS Computer Use permission window.

  • Phone Git controls use 推送, 拉取, and 获取 for these actions.
  • The phone’s More keys sheet labels Paste as 粘贴.
  • The phone’s update sheet shows its already-current status in Chinese.
  • Chinese Computer Use permission text ends without 。.

Reviews (3) · Last reviewed commit: "fix(i18n): say 粘贴 and 推送/拉取/获取 on the ph..." · Reviewed by Greptile

@coderabbitai

coderabbitai Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The Chinese locale adds an “already up to date” message and updates terminal and source-control labels. The renderer’s mobile terminal paste label changes from English to Chinese. Chinese macOS permission-window subtitles and drag instructions have their trailing full stops removed.

Merge Risk: Minimal · up to 4f636

This updates Chinese UI wording on the phone, the desktop mobile mock and the macOS permission window. No behavior changes and no concrete risk were found, so it is ready to merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Title check Passed The title names the main changes: phone Chinese labels for paste, push, pull and fetch, the missing alreadyCurrent string, and removal of the trailing full stop in the Computer Use window. It is speci…
Description check Passed The description follows the template well. It has an ELI5 section, a detailed What Changed table, a Why section, a linked issue (Refs #32207, which is a tracking issue, so it does not meet the templat…
Full details: Title check

Explanation

The title names the main changes: phone Chinese labels for paste, push, pull and fetch, the missing alreadyCurrent string, and removal of the trailing full stop in the Computer Use window. It is specific and matches the changeset. It is long (117 characters, 20 words), which is a minor concern but does not make it unrelated or vague.

Full details: Description check

Explanation

The description follows the template well. It has an ELI5 section, a detailed What Changed table, a Why section, a linked issue (Refs #32207, which is a tracking issue, so it does not meet the template's 'Fixes #' requirement for outside contributors), Visual Proof marked N/A with a reason, Testing, Performance, Risk with level, AI Disclosure left blank, and the upstream boundary checkbox. The main gaps are the linked issue and the unchecked lint/typecheck/test/build item. The Visual Proof section says N/A, but the template requires before and after for UI or behavior changes. The phone label changes are user-visible, so a before/after comparison is expected. The description is mostly complete, so the check passes, but the author should address these gaps.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d176a8ce-0304-41f6-8f04-11d86e35a45a
Commits

Reviewing files that changed from the base of the PR and between 892db38 and 4f636a7.

Files selected for processing: 3

  • mobile/src/i18n/locales/zh.json
  • native/computer-use-macos/Sources/OrcaComputerUseMacOSCore/PermissionWindowCopy.swift
  • src/renderer/src/i18n/locales/zh.json

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

…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
@nwparker
nwparker force-pushed the fix/i18n-zh-phone-git-paste branch from 06a7b13 to e4874f9 Compare November 29, 2026 07:00
@nwparker nwparker changed the title fix(i18n): say 粘贴 and 推送/拉取/获取 on the phone, drop the Computer Use window's final 。 in zh fix(i18n): say 粘贴 and 推送/拉取/获取 on the phone, add missing alreadyCurrent, drop the Computer Use window's final 。 in zh Nov 29, 2026
@nwparker
nwparker merged commit b352d86 into stablyai:main Nov 29, 2026
71 of 72 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants