Skip to content

fix(i18n): translate missing Portuguese native-chat strings for workers, subagents, and background tasks - #48511

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

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

Conversation

@yohangwak

@yohangwak yohangwak commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

When Orca was set to Portuguese, parts of the chat screen still showed English: the worker panel, background tasks, subagent rows and navigation, queued messages, side chat, and fork notices. This adds the Portuguese text for them. Only the Portuguese translation file changes; app behavior does not.

What Changed

  • Before: with the Portuguese UI, these rows showed English (1 needs attention, Back to main agent, Running, Side chat, ...). 136 keys under components.native-chat (workerDock, backgroundTasks, subagents, queuedMessages, sideChat, fork, taskList, memoryUpdated, typedBy, workers) existed in en.json but not in pt.json, so i18next fell back to English.
  • After: the same keys resolve to Portuguese (1 precisa de atenção, Voltar ao agente principal, Executando, Chat paralelo).
  • Mechanism: 148 new leaves (136 keys plus 12 _many plural forms) in src/renderer/src/i18n/locales/pt.json, each placed after the sibling it follows in en.json. No existing value is changed or removed (the 4 deleted lines are trailing-comma rewrites). Every {{placeholder}} and <tag> matches en.json, and plural suffixes match Intl.PluralRules('pt') (one, many, other).

Wording reuses terms already in pt.json: worker and coordenador as in worker settings, ramificação for fork, Status indisponível, Dispensar, Executando.

Why

Workers, subagents and background tasks appear in most chats that run more than one agent, and they were English blocks on an otherwise Portuguese screen. Filling the catalog gap is the only fix needed; no code path is involved.

Linked Issue

Fixes #48512

Visual Proof

Captured by @yohangwak with the native-chat fixtures in the Portuguese UI, main (top) vs this branch (bottom). 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
  • Automated tests added/updated, or explained why not below
  • Every added test fails without this change and avoids the test anti-patterns

No new tests: this is catalog data only, covered by the existing catalog verifiers, which check placeholders and tags against en.json.

On macOS:

  • Reproduced with a small i18next script (lng: pt, fallback en): on main, needsAttention (count 1), subagents.backToMain, workerDock.running and sideChat.pill resolve to English; on this branch they resolve to Portuguese.
  • Structural check: JSON parses; 148 added, 0 removed, 0 existing values changed; every added key exists in en.json with matching placeholders and tags.
  • pnpm verify:localization-catalog and pnpm verify:localization-catalogs pass. audit-localization-coverage.test.mjs passes (4/4). oxfmt --check pt.json is clean. The changed-code quality gate reports no changed JS/TS.

Performance

None, because only the Portuguese catalog grows, and it is loaded only when Portuguese is selected. pt.json grows by about 8.1 KB (+0.53%); JSON.parse best of 20 is 2.39 ms on main vs 2.34 ms on this branch, the same within noise. No runtime code, polling, I/O or rendering changes.

Risk

Level: Low

Only Portuguese text is added. If a word is off, Portuguese users see that word instead of English. A plain revert backs it out. Open PR #47026 (pt-BR full catalog) overlaps 134 of these leaves, so whichever lands second will need a conflict resolution on these lines.

Review

  • Cross-platform: text only.
  • SSH/remote: not affected; remotes do not read renderer catalogs. Mixed client versions are unaffected.
  • Mobile: not touched; the phone app has its own catalog.
  • Security: no code, URLs or scripts added.

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

Original fix by @yohangwak in #48511 (commit authorship preserved).

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 Portuguese locale adds translations for task progress, background tasks, subagents, queued messages, chat commands, side chats, memory notices, sender attribution, and worker-dock states and controls.

Severity of issue fixed: Low

Merge Risk: Minimal · up to 80cee

This change adds Portuguese translations for chat, worker, and subagent UI strings that previously fell back to English. It has no code-path or performance impact, and the worst realistic outcome is an awkward string. It is safe to merge once CI passes.

Pre-merge checks: Passed 4

Check name Status Explanation
Linked Issues check Passed [#48512] requests Portuguese values for 136 missing components.native-chat keys. The whole-PR diff (merge base c67a5a8 to head 80ceec2) adds only to src/renderer/src/i18n/locales/pt.json, with 148 add…
Out of Scope Changes check Passed The whole-PR diff changes only src/renderer/src/i18n/locales/pt.json. Every hunk adds Portuguese values under native-chat areas that the linked issue #48512 lists (workerDock, backgroundTasks, subagen…
Title check Passed The title names the main change: adding missing Portuguese translations for native-chat strings covering workers, subagents, and background tasks. It uses the conventional fix(i18n) prefix. At 104 cha…
Description check Passed The description follows the template. It has ELI5, What Changed, Why, a linked issue (Fixes #48512), Visual Proof with before/after images, Testing with the checklist, a Performance line ('None, becau…
Full details: Linked Issues check

Explanation

[#48512] requests Portuguese values for 136 missing components.native-chat keys. The whole-PR diff (merge base c67a5a8 to head 80ceec2) adds only to src/renderer/src/i18n/locales/pt.json, with 148 added leaves. Counting per area matches the issue table: workerDock 74 (84 leaves minus 10 _many), backgroundTasks 14, subagents 20 (5 in the first block plus 15 in the second), queuedMessages 3, sideChat 12, fork 3, taskList 1 (progress), memoryUpdated 5, typedBy 3, workers 1. The 136 keys plus 12 _many forms equal 148 leaves. Each plural group has _one, _other and _many, as the issue requires for Portuguese plural forms. The diff shows no changes to existing Portuguese values or to other locales. The diff alone does not show the en.json key set, so exact key-by-key matching against en.json was not checked. The issue's explicit exclusions (connections, sign-in, messages, approvals) are not touched. The requirement is a catalog-value addition, so no coding behavior is required beyond these entries.

Full details: Out of Scope Changes check

Explanation

The whole-PR diff changes only src/renderer/src/i18n/locales/pt.json. Every hunk adds Portuguese values under native-chat areas that the linked issue #48512 lists (workerDock, backgroundTasks, subagents, queuedMessages, sideChat, fork, taskList, memoryUpdated, typedBy, workers). No existing values, English sources or other locales change. The only non-added edits are trailing commas where a new key follows the last entry of an object, which is required for valid JSON. No out-of-scope change was found.

Full details: Title check

Explanation

The title names the main change: adding missing Portuguese translations for native-chat strings covering workers, subagents, and background tasks. It uses the conventional fix(i18n) prefix. At 104 characters it is long, but it stays specific and on topic, and the changeset only touches pt.json.

Full details: Description check

Explanation

The description follows the template. It has ELI5, What Changed, Why, a linked issue (Fixes #48512), Visual Proof with before/after images, Testing with the checklist, a Performance line ('None, because ...'), a Risk section with level Low, and the Review, Notes, and Checklist sections. The AI Disclosure section is left blank, which the template allows for internal contributors and which the author may need to address for outside contributors. The Visual Proof section has before/after images across light and dark themes, and the Testing section lists concrete verification steps on macOS.

  • 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: b69fe299-ddba-43da-9747-859474ef2356
Commits

Reviewing files that changed from the base of the PR and between dab5fdc and 80ceec2.

Files selected for processing: 1

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

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

…rs, subagents, and background tasks

The taskList, backgroundTasks, subagents, queuedMessages, fork,
sideChat, memoryUpdated, typedBy, workers, and workerDock rows in the
Portuguese UI fell back to English because their keys were missing
from pt.json. This adds 148 leaves: 136 keys plus 12 `_many` forms.
Each new key sits after the sibling it follows in en.json, and each
`_other` gets a `_many` copy, as elsewhere in pt.json.

Fixes stablyai#48512
@nwparker
nwparker force-pushed the yohangwak/pt-native-chat-b branch from dab5fdc to 80ceec2 Compare November 25, 2026 00:49
@nwparker nwparker changed the title fix(i18n): translate 136 missing Portuguese native-chat strings for workers, subagents, and background tasks fix(i18n): translate missing Portuguese native-chat strings for workers, subagents, and background tasks Nov 25, 2026
@nwparker
nwparker merged commit df44b1e 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]: Portuguese UI: 136 native chat strings for workers, subagents, and background tasks fall back to English

2 participants