Repository navigation
Conversation
Adds docs/readme/README.tr.md and wires the Türkçe link into the language switcher on README.md and every other translated README.
Adds tr.json (full catalog coverage) and wires Turkish in as a selectable UI language: shared ui-language/ui-locale types, the renderer and main process lazy locale loaders, the settings language picker, and native Electron menu labels (Edit/View/Window/App menu roles that previously had no label override and fell back to Electron's own untranslated default). Also fixes several renderer strings that interpolated a raw, untranslated English word into an otherwise-translated template (floating terminal toggle tooltip, worktree/dashboard child-agent disclosure labels, PR viewed-file checkbox, and the Landing screen's create/navigate shortcut hints), and localizes the Keyboard Shortcuts settings pane (shortcut titles, group headers, and status filters), which previously rendered entirely in English regardless of the active UI language.
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (4)
🚧 Files skipped from review as they are similar to previous changes (4)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe change adds Turkish as a supported UI locale. It adds locale normalization, lazy loading, translation catalogs, renderer labels, tests, and README translations. It localizes keyboard shortcut titles, groups, accessibility labels, and component actions. It also extracts native Electron menu builders and preserves platform-specific paste behavior. Priority: ➖ Normal Merge Risk: 🔵 Low · up to Turkish support is largely complete, but shortcut-conflict errors may still contain English text. The change is mergeable with owner awareness or a follow-up localization fix. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
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. Comment |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to GitHub limitations.
🟡 Minor · Localize the complete conflict error. · ShortcutsPane.tsx:203
src/renderer/src/components/settings/ShortcutsPane.tsx:203
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick winLocalize the complete conflict error.
When a shortcut conflicts, this template still renders the English phrase
conflicts with. Turkish users receive a mixed-language error even though the action labels now use translated titles. Usetranslate(...)for the complete message and interpolate the formatted binding and labels.Based on learnings, user-facing text must use translated resources.
Source: Learnings
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 8f78a113-5abf-4043-b954-8690b5f70680
📒 Files selected for processing (40)
README.mdconfig/scripts/locale-translation-policy.mjsdocs/readme/README.es.mddocs/readme/README.fr.mddocs/readme/README.ja.mddocs/readme/README.ko.mddocs/readme/README.pt.mddocs/readme/README.tr.mddocs/readme/README.zh-CN.mdsrc/main/i18n/main-i18n-lazy-locale.test.tssrc/main/i18n/main-i18n.tssrc/main/menu/app-menu-selection-item.tssrc/main/menu/build-native-role-menu-items.tssrc/main/menu/register-app-menu.tssrc/renderer/src/components/Landing.tsxsrc/renderer/src/components/dashboard/DashboardAgentChildDisclosure.tsxsrc/renderer/src/components/floating-terminal/FloatingTerminalToggleButton.tsxsrc/renderer/src/components/github/PRViewedCheckbox.tsxsrc/renderer/src/components/settings/ShortcutCommandBlock.tsxsrc/renderer/src/components/settings/ShortcutFilterRail.tsxsrc/renderer/src/components/settings/ShortcutRowsList.tsxsrc/renderer/src/components/settings/ShortcutsPane.tsxsrc/renderer/src/components/sidebar/ImportedWorktreesVisibilityLine.tsxsrc/renderer/src/components/sidebar/worktree-card-compact-agent-row.tsxsrc/renderer/src/i18n/I18nProvider.tsxsrc/renderer/src/i18n/en-runtime-required.jsonsrc/renderer/src/i18n/i18n.tssrc/renderer/src/i18n/keybinding-catalog-labels.tssrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/i18n/locales/es.jsonsrc/renderer/src/i18n/locales/fr.jsonsrc/renderer/src/i18n/locales/ja.jsonsrc/renderer/src/i18n/locales/ko.jsonsrc/renderer/src/i18n/locales/tr.jsonsrc/renderer/src/i18n/locales/zh.jsonsrc/renderer/src/i18n/supported-languages.tssrc/shared/ui-language.test.tssrc/shared/ui-language.tssrc/shared/ui-locale.test.tssrc/shared/ui-locale.ts
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.
The keybinding conflict message and the parse-error/unavailable messages in ShortcutsPane still built their text from raw English template literals even after the shortcut titles they reference were translated, so a Turkish user hit a mixed-language error. Extracts the three messages into shortcut-error-messages.ts and routes them through translate().
There was a problem hiding this comment.
ℹ️ Minor suggestions only. Turkish catalog is complete and the wiring checks out; the one gap is the dynamically generated agent-tab rows in the new keybinding label resolver.
Reviewed changes
- Turkish locale wired end to end —
UI_LANGUAGE_TURKISH/'tr'added toui-language.ts,ui-locale.ts, the renderer and main lazy locale loaders, the Settings language picker, andNATIVE_PICKER_LABELS; newtr.jsonmirrorsen.jsonexactly (14615/14615 leaves, no placeholder mismatches, no prose left in English). - Native Electron menu labels localized — explicit labels for Edit Undo/Redo/Cut, View Toggle Developer Tools/Toggle Full Screen, Window Minimize/Zoom, and macOS About/Services/Hide/Hide Others/Show All/Quit via new
build-native-role-menu-items.ts; the paste click handler is extracted unchanged intocreateAppMenuPasteItem. <html lang>sync —I18nProvidersetsdocument.documentElement.langfromgetIntlLocale()onlanguageChanged, so CSS uppercase uses Turkish dotted/dotless I casing.- Display-layer keybinding localization — new
keybinding-catalog-labels.tstranslates shortcut titles bydefinition.idand group headers by an English→key map, applied inShortcutCommandBlock,ShortcutFilterRail,ShortcutRowsList, andShortcutsPane. - Interpolated verb fragments localized — child-agent disclosure labels, floating terminal tooltip, PR "mark as viewed" checkbox, hidden-worktree line, and the Landing shortcut hints now translate their embedded words.
- README —
docs/readme/README.tr.mdadded and the Türkçe switcher link added toREADME.mdand every localized README; all relative links resolve.
Verification this run: pnpm tc:node and pnpm tc:web pass; verify:localization-catalog, verify:localization-extraction, verify:localization-coverage, and the runtime-catalog verifier pass; Electron 43.7.0 honors label overrides on all the roles used here, so the menu change is behavior-preserving.
ℹ️ Shortcut conflict warnings still render English action titles
The blocking-conflict message in ShortcutsPane.tsx was moved onto translateKeybindingTitle, but the sibling per-row warnings built by buildShortcutDefinitionCatalog still derive their text from definitionsByAction.get(id)?.title and are surfaced through ShortcutRowVisibility warnings. So a conflicting shortcut shows a localized error when it blocks, yet an English … conflicts with <title>. warning on the row. The whole warning sentence is hardcoded English, so routing titles through the new helper alone would leave it half-translated — worth either extending the mechanism or scoping the claim.
Technical details
# Shortcut row conflict warnings remain English
## Affected sites
- `src/renderer/src/components/settings/shortcut-definition-catalog.ts:52` — labels joined from `definitionsByAction.get(id)?.title`, and the sentence at line 57 is a hardcoded English template (`<binding> conflicts with <titles>.`).
- `src/renderer/src/components/settings/shortcut-row-visibility.ts:58` — the resulting strings are surfaced as row `warnings`.
- `src/renderer/src/components/settings/ShortcutsPane.tsx:195-199` — the blocking-conflict path that *was* localized in this PR.
## Required outcome
- Conflict warnings follow the active UI language like the blocking-conflict message, or the PR's localization claim is narrowed to the blocking path.ℹ️ Nitpicks
src/renderer/src/i18n/i18n.ts:18— the comment still says "the other four locales add ~2MB"; with Turkish there are now six non-English catalogs.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
The blocking-conflict message in ShortcutsPane.saveBindings was already localized, but the sibling per-row conflict warning built in buildShortcutDefinitionCatalog (surfaced as inline row warnings via buildShortcutRowVisibility) still built its text from the raw English definition title and a hardcoded "conflicts with" template, so a conflicting shortcut showed a localized error only when it blocked saving, and an English warning on the row otherwise. Routes it through the same translateKeybindingTitle/getBindingConflictMessage helpers. Also fixes a stale comment in i18n.ts referencing "the other four locales" now that there are six non-English catalogs.
There was a problem hiding this comment.
ℹ️ Minor suggestion — the new error-message helper isn't reused by the parallel conflict-warning path.
Reviewed changes (since 6b584b8)
- Shortcut error strings extracted and localized — new
src/renderer/src/components/settings/shortcut-error-messages.tswrapsgetUnableToParseShortcutMessage,getShortcutUnavailableMessage, andgetBindingConflictMessage;ShortcutsPane.tsxnow uses them and resolves blocking-conflict action labels throughtranslateKeybindingTitle. - Catalog keys added —
bindingConflictandunableToParseShortcutland inen.jsonand the Turkishtr.json, which now covers 14617/14617 leaves with no placeholder mismatches.
Verification this run: pnpm tc:node/pnpm tc:web pass; verify:localization-catalog and the runtime-catalog verifier pass.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
ℹ️ Delta is clean — the conflict-warning finding and the stale-comment nit from the previous review are both addressed.
Reviewed changes (since 2fa9491)
- Per-row conflict warnings localized —
shortcut-definition-catalog.tsnow reusesgetBindingConflictMessageand resolves conflict action titles throughtranslateKeybindingTitle, soShortcutRowVisibilitywarnings match the localized blocking error instead of building the sentence inline. - Stale comment corrected — the
i18n.tsbootstrap comment no longer says "four locales".
Verification this run: pnpm tc:web and pnpm tc:node pass.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
buildAgentTabKeybindingDefinitions() generates one definition per installed TUI agent (id `tab.newAgent.<agent>`, group 'Agents'), so they have no fixed slot in the static per-id keybinding titles catalog and always rendered in English regardless of the active UI language. Their title only varies by the agent's own (never-translated) display name, so translateKeybindingTitle now detects that id shape and interpolates the name into a single translated sentence instead, and 'Agents' is added to the group-title catalog map. Adds keybinding-catalog-labels.test.ts covering both the static and dynamic title paths and the group lookup.
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes (since 7d912f6)
- Dynamically generated agent-tab rows localized —
translateKeybindingTitlenow detects thetab.newAgent.<agent>id shape and renders it through the newauto.lib.keybindings.titles.newAgentTabtemplate, interpolating the (intentionally untranslated) agent display name; unrecognized agent ids still fall back to the literal title. Agentsgroup header localized —GROUP_CATALOG_KEY_BY_TITLEgainedAgents: 'agents'plus the matchinggroups.agentscatalog entries inen.json/tr.json.- Tests added —
keybinding-catalog-labels.test.tscovers both the agent-tab interpolation (exactYeni Claude sekmesi), the unknown-agent fallback, and theAgentsgroup header.
Verification this run: verify-localization-catalog reports tr.json 14619/14619, 0 missing; verify-localization-extraction passes; the new test file passes (5/5). The prior Agents-group feedback is addressed, so its thread has been resolved.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
No behavior change. Adds brief doc comments to the exported functions introduced or touched in this PR's i18n work that lacked one.
* feat(i18n): add Turkish UI language Register Turkish (tr) as a built-in UI language alongside en, zh, ko, ja, es, fr and pt: language setting, system-locale detection, renderer and main-process lazy catalogs, Settings picker label in every catalog, Settings search keyword, onboarding picker, docs, README link and a Turkish style glossary (config/i18n-turkish.md). tr.json comes from the community Turkish catalog (#22200, refreshed in #31316), reconciled with the current en.json: keys retired from en.json, entries whose English source changed since the refresh, and entries with placeholder mismatches are dropped and fall back to English until the next translation pass. Supersedes #31316. Co-authored-by: Uğur Pala <[email protected]> Co-authored-by: mert <[email protected]> Co-authored-by: Mehmet Efe Aytaş <[email protected]> * feat(i18n): complete Turkish catalog Translate the 1,432 keys tr.json was missing, restore the count placeholder in six Turkish singular forms, and order the catalog like en.json. * fix(i18n): apply Turkish translation review Correct 32 mistranslations (wrong meaning, translated command names and example paths, swapped placeholders) and 525 glossary and grammar issues that two independent review passes both flagged. * fix(i18n): Turkish review fixes and dotted-I settings search Fold U+0307 from lowercased Turkish İ so settings search matches plain-i queries, fix sampled Turkish meaning/terminology issues, and align the glossary casing rule with the catalog. --------- Co-authored-by: OrcaWin <[email protected]> Co-authored-by: Uğur Pala <[email protected]> Co-authored-by: mert <[email protected]> Co-authored-by: Mehmet Efe Aytaş <[email protected]>
|
Thank you for this! Turkish (Türkçe) is now a built-in UI language as of #34718, so I'm closing this in its favor. If you spot wording that reads wrong, a follow-up PR against |











ELI5
Orca's UI and README were only available in English, Chinese, Korean, Japanese, Spanish, and French. This adds Turkish as a full, selectable language.
What Changed
docs/readme/README.tr.mdand adds the Türkçe link to the language switcher onREADME.mdand every other translated README.UI_LANGUAGE_TURKISHinsrc/shared/ui-language.ts,'tr'inSUPPORTED_UI_LOCALES(src/shared/ui-locale.ts), the renderer and main-process lazy locale loaders, the Settings > Appearance > Language picker, and the nativeNATIVE_PICKER_LABELSentries so every locale's picker shows "Türkçe".src/renderer/src/i18n/locales/tr.jsonwith full catalog coverage (100% ofen.json's ~14.6k leaf strings), translated with git/dev vocabulary (branch, commit, merge, worktree, repo, PR, HEAD, etc.) intentionally left in English, since that's how Turkish developers actually use these terms day to day — matching the existingNEVER_TRANSLATE_VALUESpolicy inconfig/scripts/locale-translation-policy.mjs.document.documentElement.langto the active locale (src/renderer/src/i18n/I18nProvider.tsx) so CSStext-transform: uppercaseapplies Turkish-correct dotted/dotless I casing (değişiklikler→DEĞİŞİKLİKLER, notDEĞIŞIKLIKLER) instead of the Unicode default, which silently broke any all-caps Turkish UI text.ShortcutCommandBlock/ShortcutRowsList/ShortcutFilterRail/ShortcutsPane), which previously rendered every shortcut title, group header, and status filter in English regardless of the active UI language, sincesrc/shared/keybindings/*definitions can't call the renderer-onlytranslate(). Addedsrc/renderer/src/i18n/keybinding-catalog-labels.tsto localize them at the display layer instead, including the dynamically generated per-agent "New <agent> tab" shortcuts and the "Agents" group, which have no fixed slot in the static per-id catalog.src/renderer/src/components/settings/shortcut-error-messages.ts), instead of only the first one being translated.Why
Turkish has ~85M speakers and no existing coverage. The mechanism issues above (menu items and interpolated strings that silently stayed in English, and the missing
langattribute breaking Turkish casing) aren't Turkish-specific bugs — they'd affect any future locale the same way, so this also closes a few latent gaps for the languages already shipped.Linked Issue
Fixes #22228
Visual Proof
Before/after screenshots for the language picker, keyboard shortcuts pane, general settings pane, and the Landing screen: see this comment.
Testing
Completed locally:
pnpm test src/renderer/src/i18n src/renderer/src/components/settings src/shared/keybindings— every file this PR touches, plus its surrounding directory — 215 test files, 1522 tests, all passing. Added/updated coverage for the newUI_LANGUAGE_TURKISHlocale (ui-language.test.ts,ui-locale.test.ts,main-i18n-lazy-locale.test.ts) and for the new keybinding-label resolver (keybinding-catalog-labels.test.ts).pnpm lintandpnpm typecheck— clean, includingverify:localization-catalog(tr.json: 14619/14619, 0 missing, 0 placeholder mismatches),verify:localization-extraction,verify:localization-coverage, andverify:localization-runtime-catalog.pnpm run build:desktop(typecheck, relay, CLI, electron-vite, web, mobile-web) — builds clean.Left to CI:
pnpm testrun (every package, not just the ones above) and the macOS-onlypnpm build:nativestep didn't complete locally in my sandbox, for reasons that look environment-specific rather than related to this change (a cross-architecture native build prerequisite documented indocs/reference/pnpm-install-policy.md, and some sandbox-specific process isolation quirks).AI Disclosure
Claude Code (Anthropic, Sonnet 5) was used substantially throughout this change — translating the catalog, most of the wiring, and the bug fixes above — under my direction and review.
Review
Agent skill upstream boundary
docs/reference/agent-skill-sharing-upstream-boundary.mdand copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.Notes
No security, cross-platform, remote/SSH, or mobile impact: this is locale content plus renderer/main i18n wiring, identical across platforms. Backwards compatible — existing locales and the default English experience are unchanged; this only adds a new, opt-in locale plus a few interpolation/menu-label fixes that also apply (harmlessly) to the languages already shipped.
Checklist
N/Awith reasonpnpm lintandpnpm typecheckpass locally;pnpm testandpnpm buildpass for every suite this PR touches, with the full monorepo run and native build left to CI (see Testing)Author: @merttpz on X (https://x.com/merttpz)