Repository navigation
Add full UI language support for ten locales - #62
Merged
Merged
Conversation
English stays the source and the runtime fallback. Each gap file matches the English key set and placeholders. pt-BR still resolves to pt. The language list now shows Português (Brasil).
Settings keeps ui_language and applies a choice immediately. Auto on first run follows the OS language when chrome exists. Kokoro and Whisper follow that language where the engines have a locale. Tray labels are chosen once at launch.
Self-improve bot
This bot does not merge. Owner ( |
4 of 5 tasks
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
Remedy already ships a 218-key server chrome catalog. This adds a desktop gap overlay for UI that never went through that catalog, and wires the language setting into dates, speech, and the tray.
English stays the source and the runtime fallback. A missing key falls back to English, then to the key itself. It does not crash and it does not render blank text.
Languages
English, Spanish (es), French (fr), German (de), Portuguese — Brazil (id
pt, label Português (Brasil)), Italian (it), Russian (ru), Polish (pl), Japanese (ja), Korean (ko), Chinese Simplified (zh-Hans).pt-BRstill resolves topt.zh-CNstill resolves tozh-Hans. Traditional Chinese keeps the existing server chrome and does not receive the Simplified gap strings.Desktop English catalog: 306 keys. Gap catalogs: 88 keys, identical set in all ten languages. Server catalogs stay at 218.
Mechanism
ENand the Go embed stay the server catalog. No new keys were added there, so the other chrome languages do not need a new translation pass.I18nProvidermergesdesktop/src/i18n/gapafter the server catalog.desktop/src/i18n/gap.test.tschecks that every locale file matches English keys, parses, and keeps the same placeholders.npm test(vitest run) picks it up, and that is what desktop CI runs.Intlfor a non-English locale. English keeps the existing compact copy.How to switch language
Settings → language dropdown. Each language is listed in its own native name (Deutsch, 日本語, Português (Brasil), and the rest), plus Auto. The choice is written to the existing
ui_languagesetting and applied immediately. Existing settings stay in place.Auto on first run uses the OS language when that language has chrome, otherwise English.
The tray menu follows the saved language, or the OS locale when the setting is Auto. The menu is built once, so a change shows the next time the app launches. The same
--homeand arguments are unchanged.Replies already follow
ui_language. Whisper uses that language when the voice language is empty. Kokoro uses a locale voice for es, fr, it, pt, ja, and zh-Hans. German, Korean, Russian, and Polish keep the English Kokoro voice. An explicit voice override still wins. OS speech follows the locale when it is not English.Tests
uv run pytest -q tests/test_i18n.py tests/test_voice.py tests/test_agent_identity.py: 52 passed, 1 skippedgo test -count=1 -run TestI18n ./httpapi/: passednpm test: 91 files, 589 tests passed (includes the gap parity test)npm run build: passed (tsc -b && vite build)cargo test --locked --lib tray_i18n: 6 passedremedy-runtime --listen 127.0.0.1:17421 --smoke-fixturewithHEARTH_CI=1,FREESPEAK_CI_QUIET=1, and an isolatedREMEDY_HOME:/api/i18nreturned esAjustes…, deEinstellungen…, ja設定…, and ptPortuguês (Brasil). No Tauri window. No screenshot, because a visible window would take focus.No version bump and no release.
Left in English on purpose
Operator settings bodies, diagnostics tables, messenger tokens, the in-app Help wiki, bundled skills, model tool schemas, Grove starter prompts, and a few session-row affordances (rename, move, tag) stay English. The Help screen already says the wiki is English. Tool schemas are not user chrome.