Skip to content

feat(i18n): add complete Russian UI locale and contextual plural grammar - #33370

Closed
gentslava wants to merge 39 commits into
stablyai:mainfrom
gentslava:gentslava/upstream-russian-locale
Closed

gentslava wants to merge 39 commits into
stablyai:mainfrom
gentslava:gentslava/upstream-russian-locale

Conversation

@gentslava

@gentslava gentslava commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Source and validation

Includes upstream main through 48de731d6276d6c17cc4404a864da4df241fa831. Current PR head: a1ec0844c6c6b70cca0d0c1de968419042c7b278; ordinary merge: a0b56c5256fc2569c545eca82471ec6b753395fc. The final reviewed tree is 1d80372a1b1c567472cbc5cde1409f701bb82dfb.

Adds exactly 48 Russian string leaves: 33 contextual-tour entries, 13 native-notification entries and two startup-discovery entries. All existing Russian translations, protected tokens and reviewed technical/product values are preserved. The maintained completeness check covers all 17,575 English keys with zero missing keys, unknown IDs, unreviewed English copies or missing count forms; the locale also retains its 160 additional Russian CLDR forms and 880 intentional English matches.

The exact final tree passed 350 focused tests across 33 files, Node/renderer source types, catalog/runtime-subset checks, extraction/source coverage and scoped lint/format. Normal hooks passed for the ordinary merge and final JSON commit. The original checkout's final commit was stopped by dependency freshness verification; root committed the identical validated tree in an already-prepared checkout through unchanged hooks with automatic installation prohibited. No dependency installation or hook bypass was needed for this publication.

This refresh did not run broad check:changed, app/browser launches, physical-device/native-notification delivery or live-provider checks. Existing extraction debt and other locales' coverage remain reported separately. Earlier automated and visual evidence below is historical and retains its stated source revisions. Current hosted status appears in GitHub Checks.

ELI5

Choose Russian in Appearance, or let Orca detect the system language. Application navigation, settings, chat controls and editor flows use reviewed Russian phrases while provider transcripts, commands, paths and product names retain their original text.

What Changed

The two project-image import strings now describe the supported source formats and 10 MB input budget. This copy accompanies #34338; merge that implementation first or together with this update so the wording matches the picker behavior. The earlier b13 refresh translated 12 source entries, retired three removed cookie-import keys and reconciled the Trash-failure object without changing upstream fallback behavior. The current main48 refresh adds 48 source-guarded translations for contextual tours, native notifications and startup discovery.

Refresh the Russian catalog against the final upstream source keys, retaining placeholders and plural forms and removing retired keys.

Add built-in Russian detection, native/renderer lazy loading, language selection and paired-web preferences. Cover the branch's English source catalog and Russian CLDR forms with reviewed phrases and source-bound exemptions for technical values.

Translate complete phrases and repair count grammar. Keep model controls compact with short effort labels such as XHigh, Max and Ultra. Guard translation imports against changed English source and protect interpolation, commands, links and markup. Include contributor guidance and completeness reporting.

Why

Russian requires context and its own plural forms. Catalog presence alone is insufficient; source snapshots and actual rendered controls must remain consistent as English copy changes.

Linked Issue

Fixes #9207.

Visual Proof

Before: frozen upstream d58849a7d8d68929bd0e686571678d85e70740af. After: standalone 0c638882c01ab223a2ebc071cfb28d519ed9802b. Matched component pairs use identical synthetic data, dark theme and 1280×900 viewport.

Before: russian before language menu

Before: russian before language menu

After: russian after language menu

After: russian after language menu

Before: russian before desktop

Before: russian before desktop

After: russian after desktop

After: russian after desktop

After: russian after fullapp conversation

After: russian after fullapp conversation

Matched Appearance component pairs plus supplemental actual full-app screenshot. The full-app test verified saved Russian setting/readback, reopened Appearance and original English provider text with a Russian draft. It did not restart the process. All final component runs had zero page errors and hidden, unfocused windows; captures ran on macOS through approved outside-sandbox execution. No private user screenshot is published and no image is committed to this PR. Full rendered evidence: gentslava#1.

Testing

Strict Russian reporting after the final main refresh covers all 17,411 core keys, with no missing keys, unreviewed copied values, unknown IDs or missing count forms. Placeholder/catalog parity, localization source/runtime generation and ordinary commit hooks passed. Focused import/drop and short-label tests passed for the feature update.

Full repository lint, typechecks, tests and builds remain assigned to upstream PR CI. Focused checks and component captures do not establish physical-device or live-provider acceptance.

AI Disclosure

Implemented and reviewed with OpenAI Codex assistance.

Review

Reuses existing language/catalog/Intl infrastructure, with retryable lazy loading and English fallback. Paired-client language preference stays client-local on older/offline servers. Existing platform-aware shortcuts and paths are preserved. Provider/user text and permission choices are not rewritten; only application copy is translated. Native menus share the catalog. Standalone React Native screens have separate copy and are not claimed as fully translated. No new network service, account access or hot-path process is introduced. Importer rejection leaves files unchanged.

Agent skill upstream boundary

  • No upstream skill-installer material is copied or mechanically translated.

Checklist

  • Feature scope, behavior and rationale are documented.
  • Scoped checks and source-specific visual evidence are documented.
  • Platform, remote, mobile and folder-workspace impact is considered.
  • Full repository lint, typechecks, tests and builds are assigned to upstream PR CI.

Updated against upstream main 6bb0c14a98530c40afb93eb60cd31ef808ce3ebe. The contribution remains scoped to this PR.

Validation at 3ed90fcd81b3b393097c0dd27fd93d55b2a01b94: desktop and CLI typechecks passed; normal commit hooks passed; 376 targeted tests passed; localization verified.

GitHub Actions and maintainer approval are tracked separately from these local results.

@gentslava
gentslava marked this pull request as ready for review October 25, 2026 03:22
@coderabbitai

coderabbitai Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Walkthrough

The change adds Russian as a built-in UI language and wires Russian catalogs into renderer and main-process loading. It updates locale detection, UI-language normalization, and locale-specific window-label formatting. Translation scripts now validate reviewed Russian deltas, plural parity, and catalog coverage. Renderer components and tests switch many labels, messages, and count strings to translation keys and Russian-aware expectations. English and Russian catalog files add the new strings and locale resources.

Priority: Normal

Merge Risk: Low · up to 82af2

Russian-language search and pseudo-localized sidebar titles have bounded UI gaps. Plugin plural validation also needs its declared locale to reliably catch bad placeholders. These issues warrant owner follow-up but do not establish a broad release failure.

Pre-merge checks: Passed 3 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Linked Issues check Warning Issue #9207 requires Russian support through config/scripts/bootstrap-locale-catalog.mjs. The PR adds UI_LANGUAGE_RUSSIAN, ru locale detection, renderer and main lazy loading, and ru.json. How… Add ru to LOCALE_CONFIG in config/scripts/bootstrap-locale-catalog.mjs with the Russian target language, display name, and cache file. Regenerate or validate src/renderer/src/i18n/locales/ru.json through that pipeline and add or upd…
Passed Passed checks: 3 passed
Check name Status Explanation
Title check Passed The title "feat(i18n): add complete Russian UI locale and contextual plural grammar" matches the main change. The changeset adds a built-in Russian (ru) UI locale with detection, lazy loading, languag…
Out of Scope Changes check Passed The changes remain connected to issue #9207. Locale registration, catalog data, lazy loading, language preferences, plural handling, translation validation, UI copy conversion, documentation, and test…
Description check Passed The pull request description is complete and follows the required structure. It includes the user-facing summary, scope, rationale, linked issue, visual proof, testing results and limitations, AI disc…
Full details: Title check

Explanation

The title "feat(i18n): add complete Russian UI locale and contextual plural grammar" matches the main change. The changeset adds a built-in Russian (ru) UI locale with detection, lazy loading, language selection, a ru.json catalog, and Russian plural handling. The title is specific and conventional. It is slightly long at 72 characters, and "complete" is a claim about coverage that the description supports only with its own reported counts.

Full details: Out of Scope Changes check

Explanation

The changes remain connected to issue #9207. Locale registration, catalog data, lazy loading, language preferences, plural handling, translation validation, UI copy conversion, documentation, and tests support a usable Russian UI locale. The changes preserve provider text, user text, paths, commands, and technical values. No unrelated product feature or service change is shown.

Full details: Description check

Explanation

The pull request description is complete and follows the required structure. It includes the user-facing summary, scope, rationale, linked issue, visual proof, testing results and limitations, AI disclosure, review notes, upstream-boundary declaration, and checklist. The Notes section and template checkbox wording are not reproduced exactly, but the required information is covered elsewhere.

Full details: Linked Issues check

Explanation

Issue #9207 requires Russian support through config/scripts/bootstrap-locale-catalog.mjs. The PR adds UI_LANGUAGE_RUSSIAN, ru locale detection, renderer and main lazy loading, and ru.json. However, config/scripts/bootstrap-locale-catalog.mjs still defines only zh, ko, ja, es, and fr in LOCALE_CONFIG. The bootstrap command therefore rejects ru, so it cannot generate the Russian catalog through the required pipeline.

Resolution

Add ru to LOCALE_CONFIG in config/scripts/bootstrap-locale-catalog.mjs with the Russian target language, display name, and cache file. Regenerate or validate src/renderer/src/i18n/locales/ru.json through that pipeline and add or update focused coverage for the Russian bootstrap path.

  • 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.

Actionable comments posted: 3


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: d6d27ccb-c34a-42cd-b829-6bd3340e795f
Commits

Reviewing files that changed from the base of the PR and between 0fa161b and 0c63888.

Files selected for processing: 90
  • config/i18n-russian.md
  • config/localization-russian-invariants.json
  • config/scripts/apply-translation-delta.mjs
  • config/scripts/apply-translation-delta.test.mjs
  • config/scripts/locale-generic-ui-terms.test.mjs
  • config/scripts/locale-translation-policy.mjs
  • config/scripts/russian-translation-progress.mjs
  • config/scripts/russian-translation-progress.test.mjs
  • config/scripts/verify-localization-catalog.mjs
  • config/scripts/verify-localization-catalog.test.mjs
  • src/main/i18n/main-i18n-lazy-locale.test.ts
  • src/main/i18n/main-i18n.ts
  • src/renderer/src/components/browser-pane/assemble-chrome/browser-page-chrome-banners.tsx
  • src/renderer/src/components/dashboard/DashboardAgentChildDisclosure.tsx
  • src/renderer/src/components/editor/ConflictComponents.tsx
  • src/renderer/src/components/editor/RichMarkdownDocLinkMenu.tsx
  • src/renderer/src/components/editor/combined-diff/review-controls/combined-diff-notes-popover.tsx
  • src/renderer/src/components/floating-terminal/FloatingTerminalToggleButton.tsx
  • src/renderer/src/components/github-project/ProjectViewStates.tsx
  • src/renderer/src/components/github/CommentReactions.tsx
  • src/renderer/src/components/github/PRViewedCheckbox.tsx
  • src/renderer/src/components/native-chat/NativeChatAutocompleteMenus.tsx
  • src/renderer/src/components/native-chat/NativeChatMessageRow.tsx
  • src/renderer/src/components/native-chat/NativeChatPermissionModePicker.tsx
  • src/renderer/src/components/native-chat/NativeChatSessionOptionPickers.tsx
  • src/renderer/src/components/onboarding/IntegrationsStep.tsx
  • src/renderer/src/components/right-sidebar/AiVaultScanProgressStrip.tsx
  • src/renderer/src/components/right-sidebar/SearchResultsPane.tsx
  • src/renderer/src/components/right-sidebar/checks-panel/conflict-summary.tsx
  • src/renderer/src/components/right-sidebar/checks-panel/triage-strip.tsx
  • src/renderer/src/components/right-sidebar/file-explorer-delete-confirmation.ts
  • src/renderer/src/components/right-sidebar/right-sidebar-titlebar-drag-regions.render.test.tsx
  • src/renderer/src/components/right-sidebar/source-control-dropdown-labels.ts
  • src/renderer/src/components/right-sidebar/source-control-primary-action-titles.ts
  • src/renderer/src/components/right-sidebar/source-control/commit/discard-dialog.tsx
  • src/renderer/src/components/right-sidebar/source-control/commit/use-discard-confirmation.ts
  • src/renderer/src/components/right-sidebar/source-control/listing/branch-entry-row.tsx
  • src/renderer/src/components/right-sidebar/source-control/listing/section-header.tsx
  • src/renderer/src/components/right-sidebar/source-control/listing/uncommitted-entry-row.tsx
  • src/renderer/src/components/right-sidebar/source-control/sync/compare-summary.tsx
  • src/renderer/src/components/right-sidebar/source-control/sync/use-conflict-abort.ts
  • src/renderer/src/components/right-sidebar/use-right-sidebar-activity-items.ts
  • src/renderer/src/components/right-sidebar/useFileDeletion.ts
  • src/renderer/src/components/right-sidebar/useFileExplorerImport.ts
  • src/renderer/src/components/settings/TerminalMacKeyboardSection.tsx
  • src/renderer/src/components/settings/appearance-search.ts
  • src/renderer/src/components/sidebar/ImportedWorktreesVisibilityLine.tsx
  • src/renderer/src/components/sidebar/OrcaYamlTrustDialog.test.tsx
  • src/renderer/src/components/sidebar/OrcaYamlTrustDialog.tsx
  • src/renderer/src/components/sidebar/WorktreeCardAgents.test.tsx
  • src/renderer/src/components/sidebar/WorktreeCardAgents.tsx
  • src/renderer/src/components/sidebar/WorktreeCardPorts.tsx
  • src/renderer/src/components/sidebar/add-remote-host-ssh-actions.ts
  • src/renderer/src/components/sidebar/local-base-ref-suggestion-toast.test.tsx
  • src/renderer/src/components/sidebar/local-base-ref-suggestion-toast.tsx
  • src/renderer/src/components/sidebar/worktree-card-agent-summary.test.ts
  • src/renderer/src/components/sidebar/worktree-card-agent-summary.ts
  • src/renderer/src/components/sidebar/worktree-card-compact-agents.tsx
  • src/renderer/src/components/sidebar/worktree-list/rows/use-project-group-dialogs.ts
  • src/renderer/src/components/skills/SkillInstallReviewContent.tsx
  • src/renderer/src/components/status-bar/PortsStatusSegment.tsx
  • src/renderer/src/components/status-bar/WorkspaceSpaceCompactPanel.tsx
  • src/renderer/src/components/status-bar/use-workspace-space-manager-panel.ts
  • src/renderer/src/components/status-bar/workspace-space-decision-hover-card.tsx
  • src/renderer/src/components/status-bar/workspace-space-manager-overview.tsx
  • src/renderer/src/components/terminal-pane/terminal-drop-upload-report.test.ts
  • src/renderer/src/components/terminal-pane/terminal-drop-upload-report.ts
  • src/renderer/src/components/terminal-pane/terminal-native-file-drop.ts
  • src/renderer/src/components/worktree-jump-palette-surface.tsx
  • src/renderer/src/i18n/editor-source-grammar.test.tsx
  • src/renderer/src/i18n/en-runtime-required.json
  • src/renderer/src/i18n/i18n.ts
  • src/renderer/src/i18n/lazy-locale.test.ts
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/ru.json
  • src/renderer/src/i18n/runtime-source-grammar.test.tsx
  • src/renderer/src/i18n/russian-daily-flow.test.tsx
  • src/renderer/src/i18n/supported-languages.ts
  • src/renderer/src/i18n/test-resources/runtime-source-grammar.json
  • src/renderer/src/lib/launch-agent-paste-timeout-notice.ts
  • src/renderer/src/lib/launch-work-item-direct-agent.ts
  • src/renderer/src/lib/window-label-formatter.test.ts
  • src/renderer/src/lib/window-label-formatter.ts
  • src/renderer/src/web/preload-api/web-keybinding-normalization.ts
  • src/renderer/src/web/web-preload-api-russian-language.test.ts
  • src/shared/ui-language.test.ts
  • src/shared/ui-language.ts
  • src/shared/ui-locale.test.ts
  • src/shared/ui-locale.ts
  • tests/e2e/russian-conversation-locale.spec.ts
Files with no reviewable changes: 1
  • config/scripts/locale-translation-policy.mjs

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

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

Actionable comments posted: 3


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: 1f23c171-3e8c-4794-80ec-9a0f678b31ec
Commits

Reviewing files that changed from the base of the PR and between 0c63888 and 40b142e.

Files selected for processing: 11
  • config/scripts/apply-translation-delta.mjs
  • config/scripts/apply-translation-delta.test.mjs
  • config/scripts/audit-localization-coverage.mjs
  • config/scripts/localization-count-lookups.mjs
  • config/scripts/localization-count-lookups.test.mjs
  • config/scripts/russian-translation-progress.mjs
  • config/scripts/russian-translation-progress.test.mjs
  • src/renderer/src/components/terminal-pane/terminal-drop-upload-report.test.ts
  • src/renderer/src/i18n/en-runtime-required.json
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/ru.json
Files skipped from review as they are similar to previous changes: 2
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/en-runtime-required.json

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

@gentslava

Copy link
Copy Markdown
Contributor Author

Updated to qualified upstream 9b23bd6b6eb3ab426f80165b0c6ee5854832dcfe with an ordinary merge; final head is 4899bb29c8bfdc1dfef53d3a83c9f889dbdd8843.

Added only its 23 missing Russian entries, preserving every existing translation and all 152 additional Russian plural forms. Placeholder multiplicities match, and the updated catalog covers 17,326/17,326 English keys. The six test fixtures now expose the existing locale formatter and expect all eight built-in languages.

Catalog/completeness/extraction/coverage checks, 128 locale tests, the final 53 fixture tests, normal hooks and all four Bun CI typecheck projects pass locally. The broad related-test aggregate was interrupted for combined integration validation and remains incomplete with partial failures preserved; these focused results do not represent a passing full aggregate or upstream Actions approval.

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

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

⚠️ Outside diff range comments (1)

Minor · Keep pseudo-localization in activity-item titles. · use-right-sidebar-activity-items.ts:38

src/renderer/src/components/right-sidebar/use-right-sidebar-activity-items.ts:38
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Keep pseudo-localization in activity-item titles.

When pseudo-localization is active, useTranslation().t bypasses the translate wrapper’s pseudoLocalizeString step. The built-in sidebar titles then remain unmodified while text using translate is pseudo-localized. Keep translate for these titles, and use useTranslation() to trigger the render and invalidate the memo on language changes. (react.i18next.com)


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: 0855ce66-23e2-4c26-9043-8d085a975624
Commits

Reviewing files that changed from the base of the PR and between da812a7 and 82af295.

Files selected for processing: 56
  • config/scripts/audit-localization-coverage.mjs
  • config/scripts/locale-generic-ui-terms.test.mjs
  • config/scripts/locale-translation-policy.mjs
  • config/scripts/verify-localization-catalog.mjs
  • src/renderer/src/components/editor/ConflictComponents.tsx
  • src/renderer/src/components/editor/RichMarkdownDocLinkMenu.tsx
  • src/renderer/src/components/floating-terminal/FloatingTerminalToggleButton.tsx
  • src/renderer/src/components/github-project/ProjectViewStates.tsx
  • src/renderer/src/components/native-chat/NativeChatAutocompleteMenus.tsx
  • src/renderer/src/components/native-chat/NativeChatMessageRow.tsx
  • src/renderer/src/components/native-chat/NativeChatPermissionModePicker.tsx
  • src/renderer/src/components/native-chat/NativeChatSessionOptionPickers.tsx
  • src/renderer/src/components/onboarding/OnboardingLanguageSwitcher.test.tsx
  • src/renderer/src/components/right-sidebar/SearchResultsPane.tsx
  • src/renderer/src/components/right-sidebar/checks-panel/conflict-summary.tsx
  • src/renderer/src/components/right-sidebar/checks-panel/triage-strip.tsx
  • src/renderer/src/components/right-sidebar/right-sidebar-titlebar-drag-regions.render.test.tsx
  • src/renderer/src/components/right-sidebar/source-control-dropdown-labels.ts
  • src/renderer/src/components/right-sidebar/source-control/commit/use-discard-confirmation.ts
  • src/renderer/src/components/right-sidebar/source-control/listing/section-header.tsx
  • src/renderer/src/components/right-sidebar/source-control/listing/uncommitted-entry-row.tsx
  • src/renderer/src/components/right-sidebar/source-control/sync/use-conflict-abort.ts
  • src/renderer/src/components/right-sidebar/use-right-sidebar-activity-items.ts
  • src/renderer/src/components/right-sidebar/useFileDeletion.ts
  • src/renderer/src/components/right-sidebar/useFileExplorerImport.ts
  • src/renderer/src/components/settings/appearance-search.ts
  • src/renderer/src/components/sidebar/ImportedWorktreesVisibilityLine.tsx
  • src/renderer/src/components/sidebar/OrcaYamlTrustDialog.test.tsx
  • src/renderer/src/components/sidebar/OrcaYamlTrustDialog.tsx
  • src/renderer/src/components/sidebar/WorktreeCardAgents.test.tsx
  • src/renderer/src/components/sidebar/WorktreeCardAgents.tsx
  • src/renderer/src/components/sidebar/WorktreeCardPorts.tsx
  • src/renderer/src/components/sidebar/add-remote-host-ssh-actions.ts
  • src/renderer/src/components/sidebar/local-base-ref-suggestion-toast.tsx
  • src/renderer/src/components/sidebar/worktree-card-agent-summary.test.ts
  • src/renderer/src/components/sidebar/worktree-card-compact-agents.tsx
  • src/renderer/src/components/skills/SkillInstallReviewContent.tsx
  • src/renderer/src/components/status-bar/PortsStatusSegment.tsx
  • src/renderer/src/components/status-bar/UsageRosterPanel.test.tsx
  • src/renderer/src/components/status-bar/cursor-usage-headline.test.tsx
  • src/renderer/src/components/status-bar/inline-usage-bars.test.tsx
  • src/renderer/src/components/status-bar/provider-segment-balance.test.tsx
  • src/renderer/src/components/status-bar/provider-segment-monthly-window.test.tsx
  • src/renderer/src/components/status-bar/status-bar-antigravity-segment.test.tsx
  • src/renderer/src/components/status-bar/status-bar-cursor-segment.test.tsx
  • src/renderer/src/components/status-bar/status-bar-pool-countdown.test.tsx
  • src/renderer/src/components/status-bar/usage-pool-label.test.ts
  • src/renderer/src/components/status-bar/usage-unit-label-parity.test.tsx
  • src/renderer/src/components/status-bar/usage-unit-label.test.ts
  • src/renderer/src/components/terminal-pane/terminal-native-file-drop.ts
  • src/renderer/src/i18n/lazy-locale.test.ts
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/ru.json
  • src/renderer/src/lib/launch-agent-paste-timeout-notice.ts
  • src/renderer/src/lib/launch-work-item-direct-agent.ts
  • src/renderer/src/lib/window-label-formatter.ts
Files with no reviewable changes: 1
  • config/scripts/locale-translation-policy.mjs
Files skipped from review as they are similar to previous changes: 22
  • src/renderer/src/components/right-sidebar/SearchResultsPane.tsx
  • src/renderer/src/components/right-sidebar/useFileExplorerImport.ts
  • src/renderer/src/components/right-sidebar/source-control/listing/section-header.tsx
  • src/renderer/src/components/sidebar/WorktreeCardAgents.tsx
  • src/renderer/src/lib/launch-agent-paste-timeout-notice.ts
  • src/renderer/src/components/sidebar/worktree-card-compact-agents.tsx
  • src/renderer/src/components/skills/SkillInstallReviewContent.tsx
  • src/renderer/src/components/sidebar/add-remote-host-ssh-actions.ts
  • src/renderer/src/lib/launch-work-item-direct-agent.ts
  • src/renderer/src/components/right-sidebar/source-control/commit/use-discard-confirmation.ts
  • src/renderer/src/components/status-bar/PortsStatusSegment.tsx
  • src/renderer/src/components/sidebar/OrcaYamlTrustDialog.tsx
  • src/renderer/src/components/right-sidebar/checks-panel/conflict-summary.tsx
  • src/renderer/src/components/editor/RichMarkdownDocLinkMenu.tsx
  • src/renderer/src/components/sidebar/WorktreeCardPorts.tsx
  • src/renderer/src/components/right-sidebar/checks-panel/triage-strip.tsx
  • src/renderer/src/components/floating-terminal/FloatingTerminalToggleButton.tsx
  • src/renderer/src/components/terminal-pane/terminal-native-file-drop.ts
  • src/renderer/src/components/right-sidebar/source-control-dropdown-labels.ts
  • src/renderer/src/components/right-sidebar/source-control/sync/use-conflict-abort.ts
  • src/renderer/src/components/sidebar/ImportedWorktreesVisibilityLine.tsx
  • src/renderer/src/i18n/locales/en.json

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

@gentslava

Copy link
Copy Markdown
Contributor Author

The bootstrap-pipeline suggestion in #9207 was evaluated. The current bootstrap-locale-catalog.mjs starts from an English clone, machine-translates it and overwrites the target catalog. Running that generator for the reviewed Russian catalog would discard its additional few/many forms and context-reviewed wording.

This PR therefore deliberately maintains ru through the documented reviewed translation workflow: apply-translation-delta.mjs checks the exact English source, placeholders and protected markup, preserves existing entries, and accepts locale-specific plurals; strict inventory and catalog validation check the result. The current standalone tree covers all 17,336 English leaves plus 152 Russian-only plural forms, with zero missing entries, unknown IDs, unreviewed English copies or missing count forms. Runtime registration, language detection and both lazy loaders are implemented. This is a deliberate maintenance-path choice for the requested Russian support, rather than a missing runtime locale.

The docstring-percentage warning is advisory. Repository guidance asks for concise comments only where the code does not describe the reason; repetitive docstrings solely to satisfy a percentage would conflict with that guidance. Functional review findings were corrected and their threads resolved; full upstream CI still awaits maintainer approval.

@smwbev

smwbev commented Oct 25, 2026

Copy link
Copy Markdown
Contributor

Heads-up on an overlap: #27974 (open since Oct 12, mergeable, waiting for review) rewrites the same suffix-parameter strings at their call sites, so the two PRs will conflict.

Checked against this PR's head d6ca29f67d and main at c77c3fe3e3:

Whichever lands second has to drop or redo those call sites. I'm happy to adapt #27974 to whichever approach the maintainers prefer, or to close it if this PR covers the same ground.

@gentslava

Copy link
Copy Markdown
Contributor Author

Thanks for checking the overlap. I compared #27974 at 4cd4b0f97e with this PR at d6ca29f67d: the nine shared count-message migrations overlap, while the GitLab approvals and Linear label/member messages are covered only by #27974. Please keep #27974 open: it also supplies the other locales, so the Russian PR does not supersede it.

The current Russian changes use separate message families with i18next count and defaultValue_one; the legacy hashed keys remain in the catalogs, rather than being the active keys at those migrated call sites. Your PR additionally removes those legacy keys. I agree that whichever lands second must reconcile both the call sites and catalog cleanup; accepting both versions mechanically would leave duplicate message families.

I am resolving this PR's conflicts with current main separately. If #27974 lands first, I will adapt the Russian PR to the merged keys and remove its overlapping families while preserving Russian count grammar. The …Singular / …Plural convention can also carry natural count-neutral Russian sentences, so this does not require changing your three additional fixes or dropping Russian grammar coverage. Maintainers can choose the landing order; there is no need to close or rewrite #27974 around this unmerged PR.

@gentslava

Copy link
Copy Markdown
Contributor Author

Superseded for Russian locale registration and the maintained catalog by #34717. At audited snapshot f6dd281f1840044550d611c10839f743fa3150b7, the replacement covers all 16,277 English keys without empty translations; maintainer improvements continue there. #27974 is also merged, covering part of the old count-message work.

Closing this older combined landing candidate so its catalog is not merged over the maintainer-reviewed one. Remaining source-copy and live-language changes are preserved at 3ed90fcd81b3b393097c0dd27fd93d55b2a01b94 and tracked in #34783. The contributor branch is retained.

#34717 is still open at this check; this closure does not claim it has merged or its full CI has passed.

@gentslava gentslava closed this Oct 28, 2026
OrcaWin added a commit that referenced this pull request Oct 28, 2026
* feat(i18n): add Russian UI language

Register `ru` as a built-in UI language using the catalog from #33370,
reconciled against current en.json: keys pruned from English were dropped,
stale translations whose English source changed were removed, and the
catalog verifier now accepts CLDR few/many forms for an existing `_other`
family.

Co-authored-by: Vyacheslav Scherbinin <gentslava@mail.ru>

* fix(i18n): drop Russian _one entries superseded by count placeholders

Main now interpolates the count in English _one strings (#34693), so the
literal-1 Russian forms no longer match their source.

* feat(i18n): complete Russian catalog and add terminology glossary

Translate the 650 remaining English keys and the few/many plural forms for
every count family, and document the Russian glossary and style conventions.

* fix(i18n): apply reviewed Russian translation corrections

Fix mistranslations and grammar flagged in a full-catalog review, and align
terminology with the glossary: рабочее дерево for worktree, рабочее
пространство for workspace, пул-реквест and файлы cookie.

* fix(i18n): resolve Russian plural forms in main-process strings and align ru terminology

translateMain now resolves literal _one/_other keys through the CLDR plural
family like translate(), so native dialogs pick Russian few/many forms. The
plural helpers move to src/shared for reuse. apply-translation-delta accepts
locale-only plural categories sourced from English _other. ru.json follows the
glossary for account/session/prompt and uses a single ellipsis character.

---------

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
Co-authored-by: Vyacheslav Scherbinin <gentslava@mail.ru>
@OrcaWin

OrcaWin commented Oct 28, 2026

Copy link
Copy Markdown
Collaborator

Thanks @gentslava — Russian is now built in via #34717, built on your catalog and plural work. Your translation was the foundation for it. If anything reads off to you (for example, the «рабочее дерево» vs «рабочая копия» choice for worktree, or «ревью» for review), follow-up PRs against src/renderer/src/i18n/locales/ru.json are very welcome.

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.

[Feature]: Add Russian (ru) UI locale

3 participants