Repository navigation
mac: Simplified Chinese localization, language picker, Capacity Dock auto-hide - #1244
Closed
TheCrazyAnt wants to merge 1 commit into
Closed
TheCrazyAnt wants to merge 1 commit into
TheCrazyAnt wants to merge 1 commit into
Conversation
TheCrazyAnt
force-pushed
the
pr/zh-hans-i18n
branch
from
September 3, 2026 06:19
0fe209e to
621ca70
Compare
…auto-hide and popover fixes Localization - Ship Localizable.strings in en.lproj / zh-Hans.lproj inside the main bundle so SwiftUI literal keys resolve on their own; plain String UI text goes through L() (String(localized:)) and runtime CLI labels through LR(). - Settings › General › Language: System / English / 简体中文, applied via the per-app AppleLanguages default with a relaunch button. - Date labels in the calendar, hero header and month picker follow the UI locale instead of en_US_POSIX; short period labels are translatable. - Scripts/l10n: extract_keys.py lists UI keys, merge_strings.py merges translation fragments and reports untranslated keys. Capacity Dock - Optional "Auto-hide at screen edge": a docked rail parks beyond its edge leaving a hover sliver that slides it back out; off by default. - The glance bubble shows the hovered provider's own "Today" spend from providerDetails and formats amounts in the display currency. Menubar / popover - Redraw the status-item title when the FX rate arrives (non-USD users saw the symbol swap with unconverted numbers until the next payload change). - Close the popover on any outside click with a global mouse-down monitor. - Optional monochrome (template) status icon; quota tint remains available. Relates to getagentseal#1219 (menubar app only; CLI and dashboard untouched).
TheCrazyAnt
force-pushed
the
pr/zh-hans-i18n
branch
from
September 4, 2026 03:12
621ca70 to
706953f
Compare
Contributor
Author
|
Closing this draft to keep to the one-PR-at-a-time rule: I'm splitting it and starting with a small, self-contained fix (the node-resolution change) in a separate PR. I'll reopen the localization work as its own PR once that one lands, and rebase it onto whatever main looks like by then. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Localizable.stringsin the main bundle; plainStringUI text goes through two small helpers (L()for literals with interpolation,LR()for labels that arrive at runtime from the CLI payload such as activity names). The English.stringsfile is generated alongside so English stays the development language. A Settings › General › Language picker (System / English / 简体中文) writes the per-appAppleLanguagesdefault and offers a relaunch.providerDetailsinstead of the all-provider total, and amounts follow the selected display currency.¥87for$87until the next payload change), the popover closes on any outside click via a global mouse-down monitor, an optional monochrome (template) status icon that matches Apple's own menu bar icons, and date labels (calendar, hero header, month picker) follow the UI locale instead ofen_US_POSIX.Relates to #1219 (this covers the macOS menubar app; the CLI and web dashboard are untouched).
Tooling:
mac/Scripts/l10n/extract_keys.pylists UI string keys from the Swift sources andmerge_strings.pymerges translation fragments and reports untranslated keys, so future languages can be added by dropping in another.lproj.Testing
npm testpasses — 3561 passed, 5 skipped;tests/sharing/connect-timeout.test.tsfails identically onmainin this environment (network-dependent), see note.npm run buildsucceedsswift test— all suites pass (129 XCTest + Swift Testing);swift build -c releaseclean;mac/Scripts/package-app.shproduces a working universal bundle withen.lproj/zh-Hans.lprojinContents/Resources.No changes under
src/,dash/orapp/.