Repository navigation
fix(i18n): use existing German terms for Workspace, Chat UI and Full Disk Access in 8 de strings - #48103
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Severity of issue fixed: Low Merge Risk:
|
Reuse the wording de.json already uses for each term elsewhere (Systemeinstellungen/Datenschutz & Sicherheit, Chat-Oberfläche, Arbeitsbereich), so one UI concept no longer has two names. Fixes stablyai#48104
8b76ff1 to
c9a5579
Compare
ELI5
With Orca set to German, a few screens still used an English word where the rest of the German app already uses a German one. For example, a hint told German users to search Settings for "Chat UI", but the German Settings page calls it "Chat-Oberfläche". This change puts in the German words the app already uses everywhere else, so each thing has one name and the search hint finds the right setting.
What Changed
Only 8 values in
src/renderer/src/i18n/locales/de.jsonchange. No keys, code, English source strings or other locales change.gitGraph.switchWorkspace,gitGraph.workspaceClosed,gitGraph.workspaceCheckFailedcomponents.native-chat.cardKindHidden.settingsLink,.failedsettings.appearance.chat.title)featureTips.chatUiHere.switchedNoteTitle,.switchedNoteBody<term>Chat UI</term>"<term>Chat-Oberfläche</term>" (<term>tag kept)browser.cookieImport.errors.safariFullDiskAccessmacFullDiskAccesserror, so "Full Disk Access Festplattenvollzugriff" no longer appears twice)Mechanism: these are catalog value edits only. Grammar was adjusted where German needs it ("in der Chat-Oberfläche", feminine dative).
Why
When one feature has two names, users can think they are two different things. The "Chat UI" search hint also pointed at a label the German Settings page doesn't show (Settings search does still match the English fallback). Every replacement is a term
de.jsonalready uses, so no new translation was needed and a reviewer can check each one against the catalog without speaking German. A full German glossary pass (for example, the remaining "System Settings öffnen" values) needs a native reviewer and is left for a follow-up.Linked Issue
Fixes #48104
Visual Proof
The note shown after new agents switch to Chat UI (
ChatUiSwitchedCornerNote), rendered in German through a component fixture. Top:main. Bottom: this PR. Screenshot from the original PR #48103.The other 7 strings are text-only changes in the Git graph, the native-chat "card hidden" notice and the Safari cookie-import error, with no layout changes.
Testing
I manually tested these changes locally (no Electron run: string-only change. The Chat UI note was rendered through a component fixture, see above.)
Automated tests added/updated, or explained why not below
Every added test fails without this change and avoids the test anti-patterns (no tests added)
Reproduced on
main: the 8 de.json values contain the English terms. A throwaway vitest probe renderedswitchedNoteBodythrough the same<Trans components={{ term }}>asChatUiSwitchedCornerNote, then ran the term through the real settings search. It showed "Chat UI" on main and "Chat-Oberfläche" on this branch, and both match the setting (translateSearchKeywordindexes the German title and the English fallback).verify:localization-catalogs,verify:localization-catalog,verify:localization-protected-copy,verify:localization-runtime-catalogandverify:mobile-localizationall exit 0.oxfmt --checkon de.json passes. ast-grep reports 0 findings. The changed-code quality gate finds no changed JS or TS.Targeted vitest (localization coverage audit, bot-app-lines): 2 files, 7 tests pass.
repair-locale-catalog.mjshas no de mode. An in-memoryrepairCatalog(en, de, 'de')keeps all 8 new values, so a regeneration pass won't put the English back.Ran on macOS. The change is platform-independent.
No tests added: AGENTS.md says not to test copy or translations.
Performance
None, because this only changes catalog string values. No code, keys or loading path change. de.json grows by 48 bytes (1,481,444 to 1,481,492). Median
JSON.parseof the catalog over 30 runs: about 2.4 ms before and after, within noise.Risk
Level: Low
Only German wording changes, in 8 strings. If a replacement reads oddly, German users see an odd German word where an English one used to be. A plain revert backs it out. The open German PR #48096 only adds new keys and merges cleanly with this one.
Review
Reviewed value by value against en.json and the catalog's existing terms. The key set and order match main, and the
<term>tokens match en.json.Agent skill upstream boundary
Notes
Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance
Original fix by @yohangwak in #48103. This branch is their commit, squashed onto current
mainwith authorship kept.Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)