Skip to content

fix(i18n): translate 96 missing Japanese native-chat strings for workers, subagents, and background tasks - #48498

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

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

Conversation

@yohangwak

@yohangwak yohangwak commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

With Orca set to Japanese, the chat's worker and background-task areas still showed English: the worker dock, the background tasks list and its details, the subagent status bar, queued messages, the side chat, and the fork / "resume in a new chat" notices. This adds Japanese text for those 96 strings.

What Changed

  • Before: in the Japanese UI these rows read in English (1 needs attention, Subagent, Task, Completed, Back to main agent, ...). 96 keys under components.native-chat (workerDock 64, backgroundTasks 5, subagents 15, queuedMessages 1, sideChat 2, memoryUpdated 5, typedBy 3, workers 1) had no ja.json entry, so i18next fell back to English.
  • After: they read in Japanese (e.g. 要対応 {{count}} 件, サブ Agent, 完了, メイン Agent に戻る).
  • Mechanism: 96 new leaves in src/renderer/src/i18n/locales/ja.json, each placed after the sibling it follows in en.json. The diff only adds lines (plus a trailing comma where a key lands after an object's last entry); no existing Japanese value, English string, or other locale changes. Wording follows the surrounding ja.json conventions (Agent kept in Latin letters, 件 for tasks/workers, state-first counters, Japanese uses only _other plural forms). Review follow-up: the queued worker questions label reads ワーカーからの質問(回答待ち) so it is clear the questions come from workers.

Why

Workers, subagents and background tasks appear in most chats that run more than one agent, and they were English blocks on an otherwise Japanese screen. Catalog-only additions are the smallest possible fix and are covered by the existing catalog validators.

Linked Issue

Fixes #48499

Visual Proof

Native chat fixtures rendered in the Japanese UI, main (top) vs this branch (bottom), captured by the original author. Text that stays English is fixture data (task titles, 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 screenshots above; catalog checks below).
  • 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 as a single commit:

  • pnpm verify:localization-catalog and pnpm verify:localization-catalogs pass (ja: 20,942/24,892 translated).
  • pnpm verify:localization-extraction passes; oxfmt --check clean on ja.json.
  • Squashed landing diff verified line-for-line identical to the reviewed change.

Performance

None, because only the lazily loaded Japanese catalog grows by ~3.8 KB (+0.3%). JSON.parse of ja.json measured old 2.61 ms vs new 2.53 ms median (30 runs, within noise); it is parsed once when the Japanese locale loads. No runtime path, polling, I/O or render work changes.

Risk

Level: Low

Only Japanese text is added. If a word is off, Japanese 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 mobile app has its own catalog.
  • Security: nothing changes.

Original fix by @yohangwak in #48498.

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • I stated the risk: what could break, for whom, and how to back it out
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

@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 Japanese locale adds strings for worker and sub-agent statuses, counts, navigation, and actions. It also adds text for queued messages, side chat, memory updates, and input attribution.

Severity of issue fixed: Low

Merge Risk: Minimal · up to c353a

This adds Japanese translations for worker, sub-agent, queued-message, side-chat, memory-update and typed-by labels that previously fell back to English. It changes no logic and has no expected performance impact. Merge risk is minimal.

Pre-merge checks: Passed 2 · Inconclusive 2

Failed Failed checks: 2 inconclusive

Check name Status Explanation Resolution
Linked Issues check Inconclusive Directly linked issue #48499 requires Japanese values for 96 missing components.native-chat keys in ja.json. The previous review passed this from a whole-PR diff at an earlier head. At the current hea… Provide readable whole-PR diff evidence for src/renderer/src/i18n/locales/ja.json at head c353aca against base b64d50b (or a file read of the changed blob). Confirm the 96 added leaves under components.native-chat (workerDock 64, background…
Out of Scope Changes check Inconclusive The current PR summary and raw summary state that only src/renderer/src/i18n/locales/ja.json changes, with +108/-2 lines. The previous review found no out-of-scope hunks in an earlier diff. The curren… Provide readable whole-PR diff evidence for changed files at head c353aca against base b64d50b. Confirm that the only changed file is ja.json and that every hunk adds a components.native-chat key or only changes a trailing comma required fo…
Passed Passed checks: 2 passed

Check name Status Explanation
Title check Passed The title names the main change: adding Japanese translations for 96 missing native-chat strings covering workers, subagents, and background tasks. The changeset adds exactly these catalog entries to …
Description check Passed The description follows the repository template closely. It has ELI5, What Changed, Why, Linked Issue (Fixes #48499), Visual Proof with before/after images for light and dark modes, Testing, Performan…
Full details: Title check

Explanation

The title names the main change: adding Japanese translations for 96 missing native-chat strings covering workers, subagents, and background tasks. The changeset adds exactly these catalog entries to ja.json. The 'fix(i18n)' prefix is a conventional-commit style marker and does not affect relevance. The title is long at 105 characters, but it is specific and accurate.

Full details: Description check

Explanation

The description follows the repository template closely. It has ELI5, What Changed, Why, Linked Issue (Fixes #48499), Visual Proof with before/after images for light and dark modes, Testing, Performance, Risk with level Low, AI Disclosure, Review, the upstream boundary checkbox, Notes, and Checklist. It explains the mechanism and the verification steps. The Testing section states that the rows were rendered only in a fixture harness, not in a live session with real workers. The Performance section gives a concrete reason. The template's Visual Proof and Risk sections are filled in. The description is mostly complete and clear.

Full details: Linked Issues check

Explanation

Directly linked issue #48499 requires Japanese values for 96 missing components.native-chat keys in ja.json. The previous review passed this from a whole-PR diff at an earlier head. At the current head c353aca, the whole-PR diff against merge base b64d50b could not be read: the changed blobs are missing from the checkout. The current head is one feature commit (c353aca, 'fix(i18n): translate 96 missing Japanese native-chat strings'). The raw summary reports +108/-2 lines, the same as the earlier verified diff, and describes the same groups. That supports the prior result but does not prove key-level content at the current head. Key count per group, Japanese values, and placeholder/tag integrity were not re-verified.

Resolution

Provide readable whole-PR diff evidence for src/renderer/src/i18n/locales/ja.json at head c353aca against base b64d50b (or a file read of the changed blob). Confirm the 96 added leaves under components.native-chat (workerDock 64, backgroundTasks 5, subagents 15, queuedMessages 1, sideChat 2, memoryUpdated 5, typedBy 3, workers 1), each with a non-English value that keeps its English placeholders and tags.

Full details: Out of Scope Changes check

Explanation

The current PR summary and raw summary state that only src/renderer/src/i18n/locales/ja.json changes, with +108/-2 lines. The previous review found no out-of-scope hunks in an earlier diff. The current whole-PR diff could not be read, so hunks at head c353aca cannot be checked for unrelated key changes, edits to existing Japanese values, or changes to other locales. The commit history shows one feature commit on top of b64d50b, which is consistent with the stated scope but does not establish hunk content.

Resolution

Provide readable whole-PR diff evidence for changed files at head c353aca against base b64d50b. Confirm that the only changed file is ja.json and that every hunk adds a components.native-chat key or only changes a trailing comma required for that addition.

  • 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: cf6fe183-09bc-4af3-ad65-05963e6ceb61
Commits

Reviewing files that changed from the base of the PR and between 73ad4dc and c353aca.

Files selected for processing: 1

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

  • src/renderer/src/i18n/locales/ja.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.

…ers, subagents, and background tasks

Add Japanese values for the native-chat worker dock, background tasks,
subagent status bar, queued messages, side chat, memory-updated and
typed-by keys that previously fell back to English.

Fixes stablyai#48499

Co-authored-by: AmethystLiang <6427696+AmethystLiang@users.noreply.github.com>
@nwparker
nwparker force-pushed the yohangwak/ja-native-chat-b branch from 73ad4dc to c353aca Compare November 25, 2026 00:52
@nwparker
nwparker merged commit 1670686 into stablyai:main Nov 25, 2026
55 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]: Japanese UI: 96 native chat strings for workers, subagents, and background tasks fall back to English

2 participants