Skip to content

fix(i18n): add missing Russian translations for workers, subagents, and background tasks - #48513

Merged
nwparker merged 1 commit into
stablyai:mainfrom
yohangwak:yohangwak/ru-native-chat-b
Nov 25, 2026
Merged

nwparker merged 1 commit into
stablyai:mainfrom
yohangwak:yohangwak/ru-native-chat-b

Conversation

@yohangwak

@yohangwak yohangwak commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

With Orca set to Russian, the chat's worker and background-task UI still showed English: the worker dock, the background tasks list and its worker details, the subagent status bar and run rows, queued messages, the side chat, and fork / "resume in a new chat" notices. This adds Russian for those strings so the whole screen reads in Russian.

What Changed

  • Before: in the Russian UI these rows showed English (1 needs attention, Subagent, Task, Completed, Back to main agent, ...). 142 keys under components.native-chat (workerDock, backgroundTasks, subagents, queuedMessages, sideChat, fork, taskList, resumeInNewChat, memoryUpdated, typedBy, workers) had no entry in ru.json, so i18next fell back to English. The side-chat argument hint was also left as the English <question>.
  • After: they read in Russian (for example {{count}} требуют внимания, Дочерний агент, Завершён, Назад к основному агенту), and the side-chat hint is <вопрос>.
  • Mechanism: 166 new leaves (142 keys plus their _one / _few / _many / _other plural forms) in src/renderer/src/i18n/locales/ru.json, each placed after its en.json sibling. The only changed existing line is the side-chat argumentHint. Russian _one plural forms keep {{count}} because Russian one also covers 21, 31, ... (e.g. Очищен {{count}} исполнитель), so a hard-coded "1" would be wrong. No English strings or other locales change.

Terminology follows the existing Russian catalog and config/i18n-russian.md (исполнитель for worker, дочерний агент for subagent, вы).

Why

Workers, subagents and background tasks appear in most multi-agent chats, and they were English blocks on an otherwise Russian screen. Adding catalog entries is the standard fix; no code changes are needed.

Linked Issue

Fixes #48514

Visual Proof

Native chat fixtures rendered in the Russian UI, main (top) vs this branch (bottom), from the original PR. Remaining English text is fixture data (task titles, replies, agent names) or strings outside this batch.

Light Dark
Background tasks, opened Background tasks, opened light Background tasks, opened dark
Subagent status bar Subagent status bar light Subagent status bar dark

Testing

  • I manually tested these changes locally (fixture renders above; catalog validated by script).
  • Automated tests added/updated, or explained why not below. None added: catalog values only, covered by verify:localization-catalog(s), which checks each value keeps its English {{placeholder}} and <tag> set.
  • Every added test fails without this change and avoids the test anti-patterns. No tests added.

On macOS, rebased onto current main (43fb152):

  • pnpm verify:localization-catalog and pnpm verify:localization-catalogs pass (ru: 20,095/24,894 translated, all existing entries verified).
  • pnpm verify:localization-protected-copy passes; oxfmt --check passes on ru.json; the file parses as valid JSON.
  • Squashed diff verified line-for-line identical to the reviewed change.

Performance

None, because only the Russian catalog grows (~9.5 KB, +0.6%), parsed once when Russian loads. Measured JSON.parse of ru.json: 4.41 ms (main) vs 3.71 ms (this branch), i.e. within noise. No runtime path, polling, I/O or render work changes.

Risk

Level: Low

Only Russian text is added (plus one hint string). If a word is off, Russian users see that word instead of English. A plain revert backs it out.

Review

  • Cross-platform: text only.
  • SSH/remote: not affected; remotes do not read renderer catalogs.
  • Mobile: not touched; the phone app has its own catalog.
  • Security: nothing changes.

Original fix by @yohangwak in #48513.

@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The Russian locale adds translations for worker-dock and child-agent states, controls, and counts. It also adds messages for queued content, chat resume and fork actions, side chats, memory updates, and sender attribution. The generic progress message now uses total; the plural progress translation retains count.

Severity of issue fixed: Low

Merge Risk: Minimal · up to 561c2

This adds Russian translations for worker, subagent, and chat UI strings that previously fell back to English. There is no logic change and no identified user-facing regression, so the change is safe to merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Linked Issues check Passed Issue #48514 requires Russian values for 142 keys under components.native-chat. The whole-PR diff (merge base to head) adds Russian values in the listed areas: workerDock, backgroundTasks, subagents (…
Out of Scope Changes check Passed The whole-PR change set touches only src/renderer/src/i18n/locales/ru.json, as described in the PR and raw summary. Every visible hunk adds Russian values under components.native-chat sections named i…
Title check Passed The title names the change: adding missing Russian translations for workers, subagents, and background tasks. It matches the ru.json catalog change. The prefix 'fix(i18n)' and the 88-character length …
Description check Passed The description follows the template. It has ELI5, What Changed, Why, Linked Issue (Fixes #48514), Visual Proof with before/after images for light and dark themes, Testing with checklist items, Perfor…
Full details: Linked Issues check

Explanation

Issue #48514 requires Russian values for 142 keys under components.native-chat. The whole-PR diff (merge base to head) adds Russian values in the listed areas: workerDock, backgroundTasks, subagents (including state and run rows), queuedMessages, sideChat, fork, taskList (the progress key with plural forms), resumeInNewChat (4 new keys), memoryUpdated, typedBy (3 keys), and workers (1 key). The ru.json hunks shown are additions only. The diff output was truncated at 16000 bytes, so the tail of the workerDock section was not read. The 142-key total and the 166-leaf count are therefore not fully verified by this review. The PR reports that verify:localization-catalog and verify:localization-catalogs pass, but those runs were not repeated here. The tidyUp and tookOver keys from PR #45740 are excluded as stated. No coding requirement is unmet in the evidence read.

Full details: Out of Scope Changes check

Explanation

The whole-PR change set touches only src/renderer/src/i18n/locales/ru.json, as described in the PR and raw summary. Every visible hunk adds Russian values under components.native-chat sections named in #48514. The one added key outside a plural group, progress in the taskList object, is one of the 142 listed keys. No existing Russian value, English string, or other locale changes appear in the visible hunks. The truncated tail of the diff was not read, so unrelated additions there are not fully excluded, but none were observed.

Full details: Title check

Explanation

The title names the change: adding missing Russian translations for workers, subagents, and background tasks. It matches the ru.json catalog change. The prefix 'fix(i18n)' and the 88-character length are acceptable, and the title does not cover every key, which is expected.

Full details: Description check

Explanation

The description follows the template. It has ELI5, What Changed, Why, Linked Issue (Fixes #48514), Visual Proof with before/after images for light and dark themes, Testing with checklist items, Performance with a line that completes the sentence, Risk with level Low and a revert path, and Review notes. The Notes, Checklist, and AI Disclosure sections are not filled in, and the Agent skill upstream boundary checkbox is left unticked. These gaps are non-critical. The Linked Issue section uses 'Fixes #48514', which is a real link, and the Testing section lists the verification performed.

  • 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

Recent 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: c99503b1-4214-4867-861b-98da2cb03622
Commits

Reviewing files that changed from the base of the PR and between 0c8a071 and 561c2d1.

Files selected for processing: 1

  • src/renderer/src/i18n/locales/ru.json
Files skipped from review as they are similar to previous changes: 1

  • src/renderer/src/i18n/locales/ru.json

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 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: 2

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: 8dd304b1-a46f-42a1-88ce-4c5d92f2249b
Commits

Reviewing files that changed from the base of the PR and between 0cd805f and 2311b2f.

Files selected for processing: 1

  • src/renderer/src/i18n/locales/ru.json

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

Comment thread src/renderer/src/i18n/locales/ru.json Resolved
Comment thread src/renderer/src/i18n/locales/ru.json Resolved
…nd background tasks

Translate 142 native-chat keys (166 leaves with plural forms) that had no
entry in ru.json, so the worker dock, background tasks, subagent status
bar, queued messages, side chat, fork and resume notices no longer fall
back to English in the Russian UI. Also fixes two worker-dock plural
strings to show the count and translates the side-chat argument hint.

Fixes stablyai#48514

Co-authored-by: Neil <[email protected]>
@nwparker
nwparker force-pushed the yohangwak/ru-native-chat-b branch from 0c8a071 to 561c2d1 Compare November 25, 2026 00:48
@nwparker nwparker changed the title fix(i18n): translate 142 missing Russian native-chat strings for workers, subagents, and background tasks fix(i18n): add missing Russian translations for workers, subagents, and background tasks Nov 25, 2026
@nwparker
nwparker merged commit 4901776 into stablyai:main Nov 25, 2026
55 of 56 checks passed
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.

[Bug]: Russian UI: 142 native chat strings for workers, subagents, and background tasks fall back to English

2 participants