Complete macOS localization parity and validate plural catalogs
Summary
Completes macOS localization across all six app/package catalogs for English, German, French, Arabic, Spanish, Traditional Chinese, Simplified Chinese, Korean, and Japanese. The main catalog has 6,326 unique keys. Existing values for the other 11 locales are retained.
- Restore records that were outside
strings, consolidate duplicate records without losing translations or translator notes, and retain newly merged upstream keys. - Complete translations and 115 count messages, including all six Arabic plural categories, French/Spanish
many, and messages with multiple arguments. - Gate CI on catalog structure, required locale coverage, translated state, exact argument positions/types, plural leaves, newline counts, and unfinished markers. Invariant brand names, identifiers, formats, prices, and CLI syntax have exact, source-bound exemptions.
- Keep translated settings-search aliases alongside English aliases, use consistent terminology, and synchronize the reviewed public error copy with its Swift/CLI fallbacks.
- Merge main through
72bcbdc773, including its SSH decoder fix. The final PR retains shared SSH test helpers, corrected connection fixtures, deterministic push-cleanup test completion, and pricing assertions that accept localized units while checking the same plan quantities. No warning or complexity budget is raised.
Translation provenance: matching iOS translations were reused, and 4,192 Simplified Chinese entries were extracted by key and matching source from #12052. Credit to @mengyang0007-dev for those translations and the terminology table. Remaining drafts used Gemini, followed by source/placeholder/newline/literal-token validation and manual corrections. Incomplete drafts were rejected. Traditional Chinese uses Taiwan terminology; broad native-speaker approval is not claimed.
Closes #12075.
Testing
Revision: 73a49543ea1669af944eac900133fe17c2bead26.
- All six macOS catalogs pass all nine required locales with zero parity errors. All 28 Python localization/structure/linter tests pass; the root linter passes all 19 discovered catalogs.
- Catalog contents are unchanged since
f62994c69f. On a leased Mac running macOS 26.5.1 and Xcode 26.3, compiled resources for those catalogs match 55,659 strings and 2,480 plural leaves. All 7,389 runtime formatting cases pass across nine locales, including zero, dual, large/million counts, and multiple count arguments. - Xcode normalization, wiring for 868 test files, package grouping, Package.resolved policy, and Cloud CLI skill coverage pass.
- Web typecheck and complexity pass. 144 focused web cases pass locally. The PTY wrapper's local child-startup deadlines failed; the same untouched Python harness passes all five readiness, gate, exit, timeout, and cancellation/cleanup cases on the fleet Mac. Assertions and timeouts were not weakened.
- Full CI is running on the current revision. Both German Settings navigation/search and Arabic Settings navigation/search with RTL layout pass (one selected test each). The harness now opens Settings after foreground activation, so the terminal window cannot cover the search field; all assertions and timeouts remain intact.
- Focused SSH reconnection tests passed all 16 cases on
e623cbb580; the subsequent commit only corrects a Settings search alias and the UI-test window-opening sequence. 73a49543eafixes the outstanding shortcut-hints search-alias comment. All 14 inline review threads are resolved; top-level policy/size-limit notices have documented dispositions.
Demo Video
The German and Arabic hosted runs above include test-recording artifacts. Their final UI sequences were visually inspected: translated Settings and German search results render, and Arabic places the sidebar on the right.
The current revision built successfully as l10n-12169-final on the shared fleet and installed locally. Remote verification confirmed the exact tagged bundle launches, answers its debug socket, and lists its terminal workspace. Its separate CUA screenshot step hit a provider-version mismatch (Unknown tool: screenshot); visual evidence comes from the successful hosted UI recordings. The initial local install ran out of disk space; obsolete same-tag artifacts were removed and the completed archive installed successfully on retry.
The build uses documented offline mode; account and network flows are not covered by this verification.
Checklist
- Nine-locale catalog coverage, format/plural runtime checks, and project/package checks pass.
- Focused web validation and unchanged PTY behavior checked.
- Localization audit covers all six catalogs, required locale entries, state, argument types/positions, plural categories, newlines, and literal CLI/schema tokens.
- Final-revision hosted checks entirely green.
- Current tagged app launch/socket verified remotely; German/Arabic hosted UI recordings visually inspected.
- Current actionable feedback addressed; 14 inline threads resolved.
Scope: website/iOS translation and pre-existing uncataloged English (including CLI help tracked by #9623) remain outside this issue. The final diff no longer changes iOS-only files. The requested master PR exceeded Bugbot's full-review size limit; incremental findings were addressed, but full automated-review coverage is not claimed. CodeRabbit reports its incremental review paused/skipped. The original per-locale commits keep the translations separately reviewable. The PR remains unmerged, pending user dogfood approval.
[!NOTE]
Medium Risk
Very large user-visible string and catalog changes can regress formatting, plurals, or search behavior, though changes are mostly copy and validation rather than security or data paths.
Overview
This PR completes macOS localization for nine locales (en, de, fr, ar, es, zh-Hant, zh-Hans, ko, ja) across app and package Localizable.xcstrings catalogs, and locks it in with CI via tests/test_localization_catalog.py and scripts/localization_catalog.py check. Contributor docs now list the supported app locales explicitly.
User-facing copy is aligned with friendlier English fallbacks in Swift/CLI (CodeRouter/executable messages, diff viewer errors, simulator TCC readiness) and matching translated entries in module catalogs (e.g. CmuxBrowser, CmuxFeedback, CmuxSwiftRenderUI).
Settings search curated entries and section titles now use String(localized:) so palette search matches localized UI while keeping English aliases in synonyms.
Separate from l10n: SSH auth marker bootstrap scopes exec open errors so stderr is not permanently silenced; push registration and UserDefaults settings observation tests wait for deterministic completion instead of polling/timeouts.
Reviewed by Cursor Bugbot for commit 73a49543ea1669af944eac900133fe17c2bead26. Bugbot is set up for automated code reviews on this repo. Configure here.