codeburn/mac/Sources/CodeBurnMenubar
ozymandiashh 9eebfda627 feat(menubar): add Simplified Chinese (zh-Hans) localization
All 533 catalog keys translated into zh-Hans, so the menubar app now follows
the system language with no setting to find and no third-party library. AppKit
picks the table: `CFBundleLocalizations` in both packaging scripts advertises
`en` and `zh-Hans`, which is also what puts the app under System Settings >
Language & Region so a user can override the language for CodeBurn alone.

Wording follows macOS system apps rather than a literal gloss: 立即刷新,
断开连接, 存储并连接, 载入配额, 再试一次. Product nouns stay as users
already know them: provider, model and plan names (Claude, Codex, Gemini,
Opus, Sonnet, Antigravity), Token, Dock, API, OAuth, shell commands and file
paths, currency codes.

Format specifiers are identical to the English entry in count and argument
order. `%%` is a literal percent sign and not an argument, so it may move where
Chinese word order demands it ("%@ · %@ 达到 100%%"); the argument-consuming
specifiers may not, because String(format:) binds them positionally. The next
commit's test enforces exactly that distinction.

Numbers, dates and currency are untouched: they already went through
NumberFormatter / DateFormatter / asCurrency(), and `L(_:_:)` only substitutes
values those produced.
2026-09-12 15:21:49 -07:00
..
Data feat(menubar): route every user-facing string through a strings catalog 2026-09-12 15:21:49 -07:00
Resources feat(menubar): add Simplified Chinese (zh-Hans) localization 2026-09-12 15:21:49 -07:00
Security feat(menubar): route every user-facing string through a strings catalog 2026-09-12 15:21:49 -07:00
Theme feat(menubar): route every user-facing string through a strings catalog 2026-09-12 15:21:49 -07:00
Views feat(menubar): route every user-facing string through a strings catalog 2026-09-12 15:21:49 -07:00
AppStore.swift feat(menubar): route every user-facing string through a strings catalog 2026-09-12 15:21:49 -07:00
AppVersion.swift Normalize menubar version display 2026-05-11 11:21:39 -07:00
CapacityDockController.swift feat(mac): tell the user when a quota reset came early 2026-09-12 14:58:42 -07:00
CapacityDockMotion.swift feat(menubar): add native Capacity Dock (#1167) 2026-08-29 00:37:30 -07:00
CapacityDockPlacement.swift fix(menubar): keep Capacity Dock hover alive after app deactivation (#1170) 2026-08-29 18:42:27 +02:00
CapacityDockPointerUpdateCoalescer.swift Fix Capacity Dock pointer coalescing and dismissal 2026-09-01 16:51:00 +05:30
CodeBurnApp.swift feat(menubar): route every user-facing string through a strings catalog 2026-09-12 15:21:49 -07:00
CurrencyState.swift perf(desktop): share cache state and eliminate duplicate cold hydration 2026-08-12 17:16:41 +03:00
Localization.swift feat(menubar): add Simplified Chinese (zh-Hans) localization 2026-09-12 15:21:49 -07:00
MenubarScope.swift feat(menubar): route every user-facing string through a strings catalog 2026-09-12 15:21:49 -07:00
MenubarSecondRow.swift fix(menubar): pick the second row's provider by its worst quota window 2026-09-12 20:29:35 +03:00
ProviderIcon.swift feat(menubar): add native Capacity Dock (#1167) 2026-08-29 00:37:30 -07:00
QuotaRefreshDecision.swift fix(mac): keep dock quota fresh when the payload tick is skipped 2026-09-12 03:47:46 -07:00
RefreshCadence.swift menubar: skip unchanged background refreshes, 120s AC idle cadence, utility QoS for tick spawns (#703) (#704) 2026-07-16 15:11:25 -07:00
SessionCountLabel.swift feat(menubar): route every user-facing string through a strings catalog 2026-09-12 15:21:49 -07:00
StatusItemContextMenuPolicy.swift test(mac): lock status-item context menu policy (#802) 2026-07-24 19:27:25 +07:00
StatusItemPlacementPolicy.swift fix(menubar): recover parked status item (#1161) 2026-08-28 13:20:48 -07:00