Skip to content

Add full UI language support for ten locales - #62

Merged
AhmiDarrow merged 2 commits into
masterfrom
feat/i18n
Nov 15, 2026
Merged

AhmiDarrow merged 2 commits into
masterfrom
feat/i18n

Conversation

@AhmiDarrow

Copy link
Copy Markdown
Owner

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-BR still resolves to pt. zh-CN still resolves to zh-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

  • Python EN and 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.
  • I18nProvider merges desktop/src/i18n/gap after the server catalog.
  • desktop/src/i18n/gap.test.ts checks 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.
  • UI font stacks fall back to system CJK faces (Yu Gothic, Malgun Gothic, Microsoft YaHei, Noto Sans CJK, and the rest). Bundled Inter covers Latin, Cyrillic, and Greek only.
  • Dates and counts use Intl for 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_language setting 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 --home and 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 skipped
  • go test -count=1 -run TestI18n ./httpapi/: passed
  • npm 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 passed
  • Hidden remedy-runtime --listen 127.0.0.1:17421 --smoke-fixture with HEARTH_CI=1, FREESPEAK_CI_QUIET=1, and an isolated REMEDY_HOME: /api/i18n returned es Ajustes…, de Einstellungen…, ja 設定…, and pt Portuguê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.

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.
@github-actions

Copy link
Copy Markdown

Self-improve bot

  • Pass 1 path/secrets: failure
  • Pass 2 behavior scan: success
  • From fork: false

This bot does not merge. Owner (CODEOWNERS) must review.
Clients only receive this after a signed release.

@AhmiDarrow
AhmiDarrow merged commit 80a82df into master Nov 15, 2026
16 of 17 checks passed
@AhmiDarrow AhmiDarrow mentioned this pull request Nov 15, 2026
4 of 5 tasks
@AhmiDarrow
AhmiDarrow deleted the feat/i18n branch November 16, 2026 01:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant