Skip to content

fix(i18n): localize provider errors and shared/native UI labels - #34680

Merged
OrcaWin merged 7 commits into
mainfrom
t3/review-issue-32207
Oct 28, 2026
Merged

OrcaWin merged 7 commits into
mainfrom
t3/review-issue-32207

Conversation

@AmethystLiang

@AmethystLiang AmethystLiang commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 11 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​231 $\color{#cf222e}{\Huge{\mathbf{−}}}$​14 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​217
Prod 102 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​4306 $\color{#cf222e}{\Huge{\mathbf{−}}}$​569 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​3737

With a non-English UI language, Linear/Jira failures, shared host and source-control metadata, and several native surfaces still displayed Orca-authored English. This change translates those paths in es, fr, ja, ko, pt and zh.

  • Add typed stable codes to fixed Linear/Jira mutation and connection failures, with an exhaustive renderer copy table. The renderer translates recognized codes and exact legacy messages, including Electron-wrapped errors. English wire errors and unknown provider messages are preserved.
  • Translate host health and protocol compatibility at renderer call sites; keep shared CLI/mobile copy in English.
  • Translate source-control variable descriptions, model/effort labels, curated chat model descriptions, browser viewport labels, SSH/workspace activity status and MCP file rows.
  • Translate native About GPU status, live window titles and import/file-picker labels. Window titles follow language changes and ignore the internal page’s English title.
  • Fix discard confirmation labels/counts and select the delete icon by action rather than the English label.
  • Fix port-scan and project-picker fallbacks, the missing Agents search keyword, terminal-count plurals and the resume hint’s Settings → Chat → Behavior path.
  • Add 178 English keys with all six target translations, fill the remaining ordinary catalog gap, and allow Portuguese deltas through the existing translation tool. The provider-credit entries deliberately kept sparse by their tests remain sparse.

Inventory and reproduction-path credit: @seijikohara and @smwbev, included as commit co-authors. Earlier merged work by @OrcaWin remains in its original commits.

Refs #32207. This draft does not close the umbrella issue. Its remaining inventory still includes automation/extra-argument validation, source-control generation errors, approval-card copy, speech descriptions, transcript/Vault/WSL/VM errors, remaining shared metadata and the main-process coverage gate. The remaining provider work also includes Jira list-error summaries and credential-verification details, Linear metadata/scope labels, saved-view restoration failures and copy-action labels. Other issues already assigned to separate PRs are not closed by this change.

Review follow-up: fixed missing-error handling and fallback selection, the missed Linear load fallback, nested translation calls, untranslated connection-test/editor failure display sites and Japanese wording. Optimistic mutations preserve error codes until UI formatting and still roll back failures. Native title listeners are removed when windows close. Haiku found no blocking regressions in the reviewed parent commit; the changes above address its actionable findings and the contributor review.

Validation: after the review fixes, ORCA_BACKGROUND_LAUNCH=1 pnpm check:changed --maxWorkers=2 passed all 27 checks on fe95dc94b525 (2,282 seconds), including affected unit tests, typechecks, localization gates, formatting, lint and ratchets. The focused review regression suites also passed (84 tests).

AmethystLiang and others added 3 commits October 27, 2026 19:34
Translate Linear/Jira failures at the renderer boundary while preserving
English errors and adding optional stable codes for existing clients.
Localize host status, source-control metadata, discard confirmations,
native dialogs, and catalog gaps across all six shipped locales.

Inventory and reproduction paths contributed in #32207.

Co-authored-by: Seiji Kohara <[email protected]>
Co-authored-by: Evgenii <[email protected]>

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

Review of the ja strings and of Linear/Jira coverage against the #32207 inventory, at c700898abc0. The inline comments cover the ja wording and two small code points.

The new error codes do not reach these display sites. Each shows result.error or error.message as is, so the coded failures stay English:

Still English at c700898abc0 and not in the remaining inventory listed in the description

Paths are under src/renderer/src/components/ unless stated.

  • Jira issue list error banner: the seven summaries and the Error ${code}: prefix in task-page-jira-load-state.ts.
  • Jira connect dialog: the sentences in src/main/jira/credential-verification.ts (describeFailure and the cloud ID fallback) embed the endpoint or HTTP status and carry no code.
  • Linear priority and estimate labels in linear-item-drawer-edit-controls.tsx, and the priority labels in linear-priority-icon.tsx (title and screen reader text). The task page already translates the same labels in task-page/task-page-localized-options.tsx.
  • Linear scope selector labels All teams and All workspaces in linear-scope-selector.tsx.
  • Saved Linear project was not found. and Saved Linear view was not found. in task-page/use-task-page-resume-restoration.ts.
  • Backlog and Unassigned fallbacks in linear-project-overview-content.tsx and linear-project-table-content.tsx.
  • Copy labels that fill {{value0}} copied: Suggested branch name in linear-issue-workspace-sidebar.tsx, and URL, Key, Branch name and Prompt in jira-issue-workspace-actions.ts.
Checked without findings
  • All 42 LEGACY_CODES strings match a main or shared literal exactly, and IPC_INVOKE_PREFIX matches Electron's Error invoking remote method '<channel>': Error: form.
  • The 180 added or changed ja values keep the {{...}} placeholders and backticked commands of en, and repairTranslatedValue leaves them unchanged.

Comment thread src/renderer/src/i18n/locales/ja.json Outdated
},
"taskProviders": {
"linear": {
"updateAccess": "更新アクセス",

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.

更新アクセス reads as a noun ("update-type access"), not as the button's action. The other access labels in this PR use the verb form, for example updateWorkspaceAccess: {{workspace}} の Linear アクセスを更新.

Suggested change
"updateAccess": "更新アクセス",
"updateAccess": "アクセスを更新",

Comment thread src/renderer/src/i18n/locales/ja.json Outdated
"medium": "中",
"high": "高",
"max": "最大",
"xhigh": "非常に高い"

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.

The ja catalog already translates the same xhigh level as 最高 (components.native-chat.composer.optionValue.xhigh and optionValueShort.xhigh), next to 最大 for max. 非常に高い makes the commit and PR settings disagree with the chat composer.

Suggested change
"xhigh": "非常に高い"
"xhigh": "最高"

Comment thread src/renderer/src/i18n/locales/ja.json Outdated
Comment on lines +414 to +415
"serverCountOne": "サーバー {{count}} 台",
"serverCountMany": "サーバー {{count}} 台",

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.

The MCP section's summary line counts the same servers with 件 (auto.components.settings.McpConfigSection.detectedServers_one and _other: サーバー {{count}} 件), so the section would show two counters. 台 is used for hosts, such as paired servers.

Suggested change
"serverCountOne": "サーバー {{count}} 台",
"serverCountMany": "サーバー {{count}} 台",
"serverCountOne": "サーバー {{count}} 件",
"serverCountMany": "サーバー {{count}} 件",

Comment thread src/renderer/src/i18n/locales/ja.json Outdated
"notConnected": "Jira に接続されていません。",
"titleRequired": "タイトルが必要です。",
"labelsConflict": "labels または labelOperations のどちらか一方を指定してください。",
"updateFailed": "issue を更新できませんでした。",

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.

createFailed two lines above uses Issue, as does the rest of the ja catalog (Issue キー, and Jira Issue を更新できませんでした。 in auto.components.JiraIssueWorkspace.ea21952aa3). The same lowercase issue is in:

  • taskProviders.errors.jira: issueTypeRequired, issueKeyRequired, invalidIssuePage, incompleteIssuePage, repeatedIssueToken, issueSearchLimit
  • taskProviders.errors.linear: createdButUnavailable, viewHasNoIssues
  • taskProviders.linear: projectIssuesLoadFailed, issuesLoadFailed
  • sourceControl.variables.linkedIssue (GitHub issue, twice)
Suggested change
"updateFailed": "issue を更新できませんでした。",
"updateFailed": "Issue を更新できませんでした。",

onLoadMore={handleLinearEmptyFilteredLoadMore}
loading={activeLinearIssueLoading}
loadMoreLabel="Fetch more"
loadMoreLabel={translate(

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.

translate is nested three times with the same key; a single translate('taskProviders.linear.fetchMore', 'Fetch more') returns the same string. The same nesting is at lines 102 and 129.

setLinearError(
err instanceof Error
? taskProviderErrorText(err.message)
: 'Failed to load Linear issues.'

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.

use-task-page-linear-list-effects.ts passes the same fallback through taskProviderErrorText at line 273; here it stays English.

Handle missing remote error text, type provider codes and keep codes intact
through connection tests and optimistic edits. Fix the remaining Linear
load fallback and redundant translation calls, apply Japanese wording
corrections, and refresh native titles on language changes.

Co-authored-by: Seiji Kohara <[email protected]>
@smwbev

smwbev commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

Checked this against the list in #32207 from 27 Oct: everything there is covered except one spot, and two more of the same kind turned up since (lines at fe95dc94b52):

  • src/renderer/src/components/settings/WslHostsSection.tsx:181 still appends status.detail from the main process as is.
  • src/renderer/src/components/right-sidebar/useFileDeletion.ts:217 passes 'delete', 'move to Recycle Bin' or 'move to Trash' into Failed to {{value0}} '{{value1}}'.. Three complete sentences, like the batch messages further down, would let each locale word them.
  • src/shared/workspace-view/workspace-row-filters.ts:172: formatActiveFilterLabel returns N filter / N filters as a literal. It shows in the workspace and activity options menus (workspace-options-menu-items.tsx:60, activity-thread-options-menu.tsx:85).

Could these go into this PR?

OrcaWin and others added 3 commits October 28, 2026 13:50
- Translate the branch's new keys into de, ru, tr and zh-Hant (added to main
  after this branch was cut), with Russian few/many forms.
- Use whole sentences for file deletion failures and the mixed batch notice
  instead of inserting a 'Recycle Bin'/'Trash' word, and count keys for the
  batch titles.
- Translate the workspace/activity options filter count (was a shared
  'N filter(s)' literal) at the renderer call sites.
- Use _one/_other families for MCP server counts, untracked-file discard copy,
  resume-chat counts, discard file counts and visible host counts.
- Localize PR/MR card status labels, the unsupported-agent hint, Linear title/
  description update failures, the Linear 'showing first N' notice and the
  Linear Connect button.

Co-authored-by: Evgenii <[email protected]>
@OrcaWin

OrcaWin commented Oct 28, 2026

Copy link
Copy Markdown
Collaborator

I picked this up to finish it rather than open a duplicate, since it had not moved since last night and conflicted with main. Everything is on this branch as new commits; nothing was force-pushed.

  • Merged main (twice). Conflicts were in apply-translation-delta.mjs (now allows all 10 built-in locales), dashboard-popout-window.test.ts (kept both tests), en.json and the generated runtime catalog. Main had dropped auto.components.TaskPage.887efe9140, so the Linear dialog's Connect button uses a new taskProviders.linear.connect key.
  • New locales. de, ru, tr and zh-Hant were added to main after this branch was cut. I translated all of the branch's keys into them, with Russian few/many forms, using a Codex translation pass followed by a separate Codex review pass against config/i18n-*.md and the existing catalogs.
  • @smwbev's three follow-ups:
  • Plurals. The branch had keys named ...One/...Many and descriptions with a count but no plural family; these became _one/_other families (MCP server count, untracked-file discard title and descriptions). Also: resume-chat count, discard file count and visible-host count.
  • Remaining English in files this PR already touches:
    • PR/MR card status labels (${label}: Merged)
    • the unsupported-agent hint fragment
    • Failed to update {{value0}} with a raw English field name
    • Linear's "Showing first {count} {label}. Search…" fragments
    • the sidebar "Hosts" literal

Verified: the four verify:localization-* checks, tc:web, tc:node, and the tests for the touched files. I'll mark this ready and merge once "PR checks passed" is green.

@OrcaWin
OrcaWin marked this pull request as ready for review October 28, 2026 21:28
@OrcaWin
OrcaWin requested a review from brennanb2025 as a code owner October 28, 2026 21:28
@coderabbitai

coderabbitai Bot commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 8 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

Learn how review limits work.

Review configuration:

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: 7b669d50-924b-42ef-8050-de357b5969f0
Commits

Reviewing files that changed from the base of the PR and between 88e23db and d020743.

Files selected for processing: 113
  • config/scripts/apply-translation-delta.mjs
  • src/main/browser/cookies/browser-cookie-import-pipeline.ts
  • src/main/ipc/jira/register-handlers.ts
  • src/main/ipc/pet-bundle-import.ts
  • src/main/ipc/pet.ts
  • src/main/ipc/shell.ts
  • src/main/jira/client.test.ts
  • src/main/jira/client.ts
  • src/main/jira/jira-issue-mutations.ts
  • src/main/linear/client.test.ts
  • src/main/linear/client.ts
  • src/main/linear/linear-issue-comments.ts
  • src/main/linear/linear-issue-mutations.ts
  • src/main/linear/linear-project-queries.ts
  • src/main/menu/gpu-acceleration-about-panel.ts
  • src/main/warp-themes/manual-warp-theme-files.ts
  • src/main/window/dashboard-popout-window.test.ts
  • src/main/window/dashboard-popout-window.ts
  • src/main/window/workspace-space-window.ts
  • src/renderer/src/components/LinearIssueTextEditor.tsx
  • src/renderer/src/components/NativeChatResumeOnRestartModal.tsx
  • src/renderer/src/components/activity/activity-thread-options-menu.tsx
  • src/renderer/src/components/automations/automation-target-availability.ts
  • src/renderer/src/components/browser-pane/assemble-chrome/browser-toolbar-menu-dropdown.tsx
  • src/renderer/src/components/browser-pane/assemble-chrome/browser-viewport-preset-label.ts
  • src/renderer/src/components/feature-wall/AiCommitPrSettingsFields.tsx
  • src/renderer/src/components/feature-wall/source-control-model-label.ts
  • src/renderer/src/components/github-project/ProjectPickerBrowse.tsx
  • src/renderer/src/components/github-project/ProjectPickerPanels.tsx
  • src/renderer/src/components/github-project/columns.ts
  • src/renderer/src/components/github-project/slug-dialog/SlugDialogBody.tsx
  • src/renderer/src/components/github-project/useProjectPickerBrowse.ts
  • src/renderer/src/components/jira-connect-dialog.tsx
  • src/renderer/src/components/jira-credential-storage-copy.ts
  • src/renderer/src/components/jira-issue-mutation-queue.ts
  • src/renderer/src/components/jira-issue-transition-control.tsx
  • src/renderer/src/components/linear-api-key-dialog.tsx
  • src/renderer/src/components/linear-issue-project-selector.tsx
  • src/renderer/src/components/linear-issue-sub-issues.tsx
  • src/renderer/src/components/linear-issue-workspace-detail-state.ts
  • src/renderer/src/components/linear-item-drawer-comment-footer.tsx
  • src/renderer/src/components/linear-item-drawer-edit-controller.tsx
  • src/renderer/src/components/linear-project-view-surfaces.test.tsx
  • src/renderer/src/components/linear-project-view-surfaces.tsx
  • src/renderer/src/components/native-chat/NativeChatModelCombobox.tsx
  • src/renderer/src/components/native-chat/agent-session-write-notice-text.test.ts
  • src/renderer/src/components/native-chat/native-chat-model-description.ts
  • src/renderer/src/components/ports/WorkspacePortScanner.tsx
  • src/renderer/src/components/right-sidebar/file-explorer-delete-classification.ts
  • src/renderer/src/components/right-sidebar/host-scoped-ports-panel.tsx
  • src/renderer/src/components/right-sidebar/source-control-discard-confirmation.test.ts
  • src/renderer/src/components/right-sidebar/source-control-discard-dialog.test.tsx
  • src/renderer/src/components/right-sidebar/source-control/commit/discard-confirmation.ts
  • src/renderer/src/components/right-sidebar/source-control/commit/discard-dialog.tsx
  • src/renderer/src/components/right-sidebar/useFileDeletion.ts
  • src/renderer/src/components/settings/McpConfigFileRow.tsx
  • src/renderer/src/components/settings/ShortcutsPane.tsx
  • src/renderer/src/components/settings/SshTargetCard.tsx
  • src/renderer/src/components/settings/jira-integration-card.tsx
  • src/renderer/src/components/settings/mcp-config-inspection.ts
  • src/renderer/src/components/settings/runtime-environment-host-details.ts
  • src/renderer/src/components/settings/task-tracker-integration-cards.test.tsx
  • src/renderer/src/components/settings/task-tracker-integration-cards.tsx
  • src/renderer/src/components/settings/use-runtime-environment-connection-actions.ts
  • src/renderer/src/components/sidebar/AddRepoHostSelector.tsx
  • src/renderer/src/components/sidebar/HostSectionHeaderMenu.tsx
  • src/renderer/src/components/sidebar/WorktreeCardStatusSlot.tsx
  • src/renderer/src/components/sidebar/active-filter-count-label.ts
  • src/renderer/src/components/sidebar/sidebar-host-options.ts
  • src/renderer/src/components/sidebar/workspace-options-menu-items.tsx
  • src/renderer/src/components/source-control/SourceControlActionVariableChips.tsx
  • src/renderer/src/components/source-control/source-control-variable-description.ts
  • src/renderer/src/components/status-bar/remote-host-connection-status.ts
  • src/renderer/src/components/task-page/jira/use-task-page-jira-issue-creation.ts
  • src/renderer/src/components/task-page/jira/use-task-page-jira-summary-generation.ts
  • src/renderer/src/components/task-page/linear/ConnectDialog.tsx
  • src/renderer/src/components/task-page/linear/Content.tsx
  • src/renderer/src/components/task-page/linear/CustomViewList.tsx
  • src/renderer/src/components/task-page/linear/CustomViewProjects.tsx
  • src/renderer/src/components/task-page/linear/IssueList.tsx
  • src/renderer/src/components/task-page/linear/ProjectList.tsx
  • src/renderer/src/components/task-page/linear/task-page-linear-issue-model.tsx
  • src/renderer/src/components/task-page/linear/use-task-page-linear-board.ts
  • src/renderer/src/components/task-page/linear/use-task-page-linear-collection-effects.ts
  • src/renderer/src/components/task-page/linear/use-task-page-linear-custom-view-effects.ts
  • src/renderer/src/components/task-page/linear/use-task-page-linear-in-orca-effects.ts
  • src/renderer/src/components/task-page/linear/use-task-page-linear-issue-creation.ts
  • src/renderer/src/components/task-page/linear/use-task-page-linear-list-effects.ts
  • src/renderer/src/components/task-page/linear/use-task-page-linear-project-creation.ts
  • src/renderer/src/hooks/useImmediateMutation.test.ts
  • src/renderer/src/hooks/useImmediateMutation.ts
  • src/renderer/src/i18n/en-runtime-required.json
  • src/renderer/src/i18n/locales/de.json
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/pt.json
  • src/renderer/src/i18n/locales/ru.json
  • src/renderer/src/i18n/locales/tr.json
  • src/renderer/src/i18n/locales/zh-Hant.json
  • src/renderer/src/i18n/locales/zh.json
  • src/renderer/src/lib/runtime-host-copy.test.ts
  • src/renderer/src/lib/runtime-host-copy.ts
  • src/renderer/src/lib/task-provider-error-copy.test.ts
  • src/renderer/src/lib/task-provider-error-copy.ts
  • src/renderer/src/lib/workspace-port-actions.ts
  • src/renderer/src/lib/workspace-port-scan-refresh.ts
  • src/renderer/src/lib/worktree-status.ts
  • src/renderer/src/runtime/runtime-protocol-compat.ts
  • src/renderer/src/store/github/project-actions.ts
  • src/shared/task-provider-failure.ts
  • 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.

@greptile-apps

greptile-apps Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 4/5

[Medium impact] The changes affect translated copy across several renderer workflows and native desktop surfaces.

The PR appears safe to merge, with two non-blocking translation corrections.

Findings

  1. P2 Column labels use the verb ▶
  2. P2 Button describes access to updates ▶

Summary

Localizes provider failures, host status, shared labels, and native dialogs while keeping English wire errors.

  • Known Linear and Jira failures show translated messages in the UI.
  • Shared renderer labels follow the selected language across workspace and task views.
  • Discard and deletion dialogs use translated action labels and item counts.
  • Native desktop titles, file pickers, and GPU status follow the selected language.
  • Translation catalogs gain copy for the newly localized app surfaces.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  A[Linear or Jira failure] --> B[English error and optional stable code]
  B --> C[Renderer error formatter]
  C --> D{Known code or exact legacy message?}
  D -->|Yes| E[Text in UI language]
  D -->|No| F[Original error text]
Loading

Reviews (1) · Last reviewed commit: "Merge origin/main into t3/review-issue-3..." · Reviewed by Greptile

"schemaDriftDetail": "Impossible de lire cette vue de projet : {{detail}}."
},
"columns": {
"type": "Tapez"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Column labels use the verb

The new projectViews.columns.type translations use “Tapez” in French and “Digite” in Portuguese. Both mean “Type something,” not an item's type. These strings name the GitHub project column, so users see an instruction instead of its name. Use “Type” in French and “Tipo” in Portuguese.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

},
"taskProviders": {
"linear": {
"updateAccess": "Accès aux mises à jour",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Button describes access to updates

The French taskProviders.linear.updateAccess text means “Access to updates.” This key labels the button for replacing an existing workspace's Linear key, so it describes the wrong action. Use “Mettre à jour l’accès,” consistent with updateWorkspaceAccess.

Suggested change
"updateAccess": "Accès aux mises à jour",
"updateAccess": "Mettre à jour l’accès",

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.

4 participants