Skip to content

feat(i18n): add German UI language - #34917

Merged
OrcaWin merged 3 commits into
mainfrom
OrcaWin/i18n-lang-de
Oct 28, 2026
Merged

OrcaWin merged 3 commits into
mainfrom
OrcaWin/i18n-lang-de

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Oct 28, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 5 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​21 $\color{#cf222e}{\Huge{\mathbf{−}}}$​14 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​7
Prod 21 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​20806 $\color{#cf222e}{\Huge{\mathbf{−}}}$​16 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​20790

Summary

Adds German (de, label Deutsch) as a built-in UI language. It is registered the same way as Russian and Turkish.

The German catalog is machine-translated. Every chunk went through two independent review passes. Fixes were applied only where both reviewers agreed or a separate arbiter pass confirmed them. A terminology-consistency sweep then ran over the whole catalog. A review by native German speakers is very welcome. Please comment on specific keys, or suggest changes to the glossary in config/i18n-german.md.

Registration points

  • src/shared/ui-language.ts: adds UI_LANGUAGE_GERMAN to the built-in type and the normalize set.
  • src/shared/ui-locale.ts: adds de to SUPPORTED_UI_LOCALES and resolveUiLocale. The system tags de, de-DE, de-AT, de-CH and de_DE.UTF-8 resolve to de.
  • src/renderer/src/i18n/supported-languages.ts: adds the Settings choice and the native fallback label Deutsch.
  • src/renderer/src/i18n/i18n.ts and src/main/i18n/main-i18n.ts: lazy-load the catalog. The main bundle ships only the main-process subset through the existing build plugin, so the de chunk in out/main is 15.8 kB (French is 16.2 kB).
  • settings.appearance.language.german = "Deutsch" is added to every catalog.
  • appearance-search.ts: adds the Deutsch keyword and the native word Sprache. Sprache is also added to the coverage allowlist.
  • config/scripts/apply-translation-delta.mjs: adds de to the supported locales, as was done for ru.
  • Docs: docs/site/content/docs/settings.mdx.
  • config/i18n-german.md: the glossary and style guide.

Catalog

  • de.json covers 16,422 of 16,434 keys. The 12 missing keys are the sparse-policy entries that must fall back to English: the status-bar credit/balance copy (auto.components.status.bar.*, see provider-credit-balance-locales.test.ts) and writeNotice.notDoneGoalChangeIncomplete.
  • Voice: neutral phrasing and infinitive buttons (Speichern, Branch auswählen). Where a sentence has to address the user, it uses du. Only a handful of strings do this. The catalog never uses Sie.
  • Terms: developer terms stay in English (Worktree, Branch, Commit, Pull Request, Repository, Diff, Issue, Label, Agent). Workspace is Arbeitsbereich and pane is Bereich.
  • Checks: placeholders, tags, markdown, backticks, newlines and edge whitespace all match English. No strings are empty.
  • Length: German text is about 31% longer than English overall. Some short labels grow a lot, for example Sleep → In Ruhezustand versetzen, Unmute Tab → Stummschaltung des Tabs aufheben, Match Case → Groß-/Kleinschreibung beachten and Use global → Globale Einstellung verwenden. Tight toolbars and badges are worth a visual check.

Tests

  • In ui-locale and ui-language, the German system tags resolve to de.
  • The onboarding picker count goes from 10 to 11.
  • Tests that used de-DE as the example of an unsupported system language now use it-IT.

Compatibility

  • Older clients and servers: normalizeUiLanguage maps an unknown de to system, so mixed versions degrade to the OS language.
  • Plugin language packs: a de plugin pack keeps its own plugin: id and resource language, so it does not collide with the built-in.
  • Mobile: mobile has no UI i18n, so nothing changes there.

Validation

  • pnpm sync:localization-runtime-catalog, then pnpm verify:localization-{catalogs,extraction,coverage,runtime-catalog}: all pass.
  • pnpm tc:web and pnpm tc:node: pass.
  • pnpm test on src/shared, src/renderer/src/i18n, src/main/i18n, the onboarding and settings components, and verify-localization-catalog.test.mjs: 15,961 tests passed. One timing-sensitive test in remote-runtime-shared-control-connection.test.ts, unrelated to this change, failed under machine load and passes when run on its own.
  • ORCA_ELECTRON_VITE_TARGET=main electron-vite build: the de chunk is 15.75 kB.

Register German (de) as a built-in UI language alongside en, zh, zh-Hant,
ko, ja, es, fr, pt, ru and tr: language setting, system-locale detection
(de, de-DE, de-AT, de-CH, de_DE.UTF-8), renderer and main-process lazy
catalogs, Settings picker label in every catalog, the "Sprache" settings
search keyword, onboarding picker, docs and a German glossary and style
guide (config/i18n-german.md).

de.json covers every en.json key except the sparse-policy entries that must
fall back to English (status-bar credit balance copy and the incomplete goal
change notice). Tests that used de-DE as the unsupported system language now
use it-IT.

The catalog is machine-translated, reviewed by two independent passes with
arbitrated fixes, and swept for terminology consistency.
@OrcaWin
OrcaWin requested a review from brennanb2025 as a code owner October 28, 2026 09:18
@coderabbitai

coderabbitai Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Caution

Review failed

Failed to post review comments.

We encountered an issue with GitHub. Use @coderabbitai full review to retry the review.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 12c06f4c-e32b-490e-8e64-12227d413211
Commits

Reviewing files that changed from the base of the PR and between db8a7bc and af5b673.

Files selected for processing: 3
  • src/renderer/src/i18n/locales/de.json
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/pt.json
Files skipped from review as they are similar to previous changes: 2
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/pt.json

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review.

Context from checks skipped due to timeout: 7
  • GitHub Check: CodeRabbit
  • GitHub Check: WSL2 distro (fedora-41)
  • GitHub Check: WSL2 distro (ubuntu-24.04)
  • GitHub Check: WSL2 distro (debian-12)
  • GitHub Check: persistence (ubuntu-22.04)
  • GitHub Check: static analysis and typecheck
  • GitHub Check: Mobile verify
Walkthrough

The change adds German (de) to shared UI language and locale handling. German appears in language choices and language-name catalogs, and the renderer and main process can load the German catalog. Search terms, settings documentation, localization guidance, and translation tooling are updated. Tests cover German locale recognition and account for the additional language option.

Priority: Normal

Pre-merge checks: Passed 3 · Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Description check Warning The description explains the implementation, scope, testing, compatibility, and translation status. However, it does not follow the repository template because it omits an actual linked issue, visual … Add the required template sections and complete them. Include a real issue link after "Fixes #", provide before-and-after visual proof or state "N/A" with a reason, document the required checklist items, and include the remaining required s…
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 3 passed
Check name Status Explanation
Title check Passed The title clearly and concisely describes the primary change: adding German as a UI language.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description explains the implementation, scope, testing, compatibility, and translation status. However, it does not follow the repository template because it omits an actual linked issue, visual proof or an explicit N/A statement, checklist completion, and several required headings.

Resolution

Add the required template sections and complete them. Include a real issue link after "Fixes #", provide before-and-after visual proof or state "N/A" with a reason, document the required checklist items, and include the remaining required sections such as Why, Review, Notes, and AI Disclosure when applicable.

Full details: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 1 functions across 12 files. (3 skipped: 3 unsupported.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick comments: 1
src/main/i18n/system-language.test.ts: 1

80-80: Trivial · Maintainability & Code Quality · Quick win

Add a German native-preference case at this wrapper boundary.

The changed row now uses it-IT, so system-language.test.ts no longer checks that getSystemLanguageDetection propagates a supported de-DE preference as { locale: 'de', status: 'supported', source: 'native' }. The shared resolver tests cover de-DE, but they do not exercise this wrapper. Add a German native-preference case to preserve this integration coverage.


Review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a1b3f2b8-7a1a-402e-93e2-b84189c47f1f
Commits

Reviewing files that changed from the base of the PR and between 2d3e7e4 and db8a7bc.

Files selected for processing: 26
  • config/i18n-german.md
  • config/localization-coverage-allowlist.json
  • config/scripts/apply-translation-delta.mjs
  • docs/site/content/docs/settings.mdx
  • src/main/i18n/main-i18n.ts
  • src/main/i18n/system-language.test.ts
  • src/renderer/src/components/onboarding/OnboardingLanguageSwitcher.test.tsx
  • src/renderer/src/components/settings/appearance-search.ts
  • src/renderer/src/i18n/i18n.ts
  • src/renderer/src/i18n/language-readiness.test.ts
  • src/renderer/src/i18n/locales/de.json
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/pt.json
  • src/renderer/src/i18n/locales/ru.json
  • src/renderer/src/i18n/locales/tr.json
  • src/renderer/src/i18n/locales/zh-Hant.json
  • src/renderer/src/i18n/locales/zh.json
  • src/renderer/src/i18n/supported-languages.ts
  • src/shared/ui-language.test.ts
  • src/shared/ui-language.ts
  • src/shared/ui-locale.test.ts
  • src/shared/ui-locale.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review.

Translate the 158 keys main added since the branch point (WSL project move,
diff size limits and others), reviewed by two passes like the rest of the
catalog, and drop the 5 keys main retired.
@OrcaWin
OrcaWin merged commit fe3eb45 into main Oct 28, 2026
46 checks passed
tomarai85 added a commit to tomarai85/orca that referenced this pull request Oct 28, 2026
Drop TabGroupDropOverlay.paneColumnLabel from the German catalog main
added (stablyai#34917). This PR removes the string, and the catalog check
fails on a key that en.json no longer has.
@nghia-chien nghia-chien mentioned this pull request Nov 29, 2026
10 of 11 tasks
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