Repository navigation
Localize the regen countdown and fix uk-UA terms - #1008
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
# Conflicts: # rust/src/locale/uk-UA.ftl
|
@coderabbitai Thanks for the pre-merge checks. Answers to both: Provider Data Stays Siloed. UI Changes Include Windows Proof. This change is limited to webview content: localized copy in |
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain
🧠 Learnings used
You are interacting with an AI system. |
Summary
RegeneratesNowkey covers the zero-remaining case, so the whole sentence is localized rather than the bare word "now".RegeneratesCountdowntemplate now takes a bare duration and owns its own wording. en-US reads "Regenerates in 2d 3h" as before. uk-UA reads "Регенерує через 2 дн. 3 год". Templates for tr-TR, zh-CN and zh-TW were already natural and are unchanged. ja-JP, ko-KR, pt-BR, es-MX and ru-RU were updated to fit the bare duration.CredsGeminiCliSetupHelp: "Установіть Gemini CLI ..." to "Встановіть Gemini CLI ..." (spelling of the imperative).CredsJetBrainsHelperMissing: "Установіть IDE JetBrains ..." to "Встановіть IDE JetBrains ...".DurationDays,DurationDaysHours,DurationDaysMinutes: "{} д" to "{} дн." (the standard abbreviation for days, so "2 дн. 3 год").PaceRunsOutIn: "Закінчується за { }" to "Закінчується через { }".PaceProjectedEmptyIn: "Передбачається порожній у { }" to "За прогнозом, вичерпається через { }".PaceProjectedEmptyNow: "Зараз проектується порожнім" to "За прогнозом, ліміт вичерпано".TokenActivityDaily,WindowLabelDaily: "Щодня" to "Денний".TokenActivityWeekly: "Щотижня" to "Тижневий".ProviderLabelMonthly: "Щомісяця" to "Місячний".UsageSpendTokenInput: "Вхід" to "Вхідні".UsageSpendTokenOutput: "Вихід" to "Вихідні".tray-uk-regen-countdown, shows a regenerating Claude session window under the shipped uk-UA strings. It uses the uk-UA catalog through a newukLocaleOverrideshelper insrc/proof/locale.ts; the rest of the surface stays English because the proof bundle is English-only.Upstream reference: commit 8cb4d93 (steipete#4676). Relevant files:
Sources/CodexBarCore/UsageFormatter.swift(hunks at old lines 107 and 155) and theuk.lprojcatalogs. The Windows port keeps its own formatter; the upstreamresetCountdownDurationsplit is not ported, and the Widget catalog is out of scope for Windows.Files changed:
apps/desktop-tauri/src/lib/metricRowModel.ts:regenCountdownremoved;regenTextusesformatCountdownandRegeneratesNow.apps/desktop-tauri/src/lib/metricRowModel.test.ts: en-US and uk-UA regen cases, and a ja-JP case.apps/desktop-tauri/src/i18n/keyGroups/providerText.ts: addsRegeneratesNow.apps/desktop-tauri/src/proof/fixtures/scenarios.ts: newuk-regen-countdownfixture.apps/desktop-tauri/src/proof/locale.ts: newukLocaleOverrideshelper.apps/desktop-tauri/scripts/proof-scenarios.json: newtray-uk-regen-countdownscenario.rust/src/locale.rs: adds theRegeneratesNowkey.rust/src/locale/*.ftl(10 files): theRegeneratesCountdowntemplate, the newRegeneratesNowkey, and (uk-UA only) the term corrections above.Checks
pnpm exec vitest run src/proof src/lib/metricRowModel.test.ts: 123 passed, 0 failed (5 files).pnpm test(full frontend): 164 files, 1622 tests passed, 0 failed.pnpm exec tsc --noEmit: clean.pnpm run build: passes (includes thecheck-localeprebuild step).pnpm proof:check: 46 of 46 scenarios passed, including the newtray-uk-regen-countdown. Screenshots are in.proof-out/all/in the worktree (Chromium, mocked IPC). The new screenshot is.proof-out/uk/tray-uk-regen-countdown.png, which shows "Регенерує через 2 дн. 3 год" beside "Session (5h) 22% used".cargo fmt --all: clean.cargo test --manifest-path rust/Cargo.toml --lib locale: 26 passed, 0 failed.cargo clippy --manifest-path rust/Cargo.toml --all-targets -- -D warnings: passes.cargo clippy --manifest-path apps/desktop-tauri/src-tauri/Cargo.toml --all-targets -- -D warnings: passes.cargo test --manifest-path rust/Cargo.toml --lib(full): 5279 passed, 0 failed, 2 ignored. This run was made after building thefake_grok_acpexample, which the grok ACP tests need.cargo test --manifest-path apps/desktop-tauri/src-tauri/Cargo.toml(full): 804 passed, 0 failed.Not covered:
Summary by CodeRabbit
Bug Fixes
Localization