Repository navigation
fix(i18n): localize provider errors and shared/native UI labels - #34680
Conversation
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
left a comment
There was a problem hiding this comment.
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:
- The Linear connection test stores
result.errorand shows it at L166;testConnectionreturnslinear.noApiKey.
- The Jira connection test does the same and shows it at L177;
testConnectionreturnsjira.notConnected.
useImmediateMutationpassesasResult.errortoonError, andlinear-item-drawer-edit-controller.tsxcallstoast.error(err)for the status, priority, estimate, assignee and label edits (linear.notConnected,linear.updateFailed).
LinearIssueTextEditordrops the code withthrow new Error(result.error)before the title and description toast.
orca/src/renderer/src/components/LinearIssueTextEditor.tsx
Lines 104 to 106 in c700898
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 intask-page-jira-load-state.ts. - Jira connect dialog: the sentences in
src/main/jira/credential-verification.ts(describeFailureand 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 inlinear-priority-icon.tsx(title and screen reader text). The task page already translates the same labels intask-page/task-page-localized-options.tsx. - Linear scope selector labels
All teamsandAll workspacesinlinear-scope-selector.tsx. Saved Linear project was not found.andSaved Linear view was not found.intask-page/use-task-page-resume-restoration.ts.BacklogandUnassignedfallbacks inlinear-project-overview-content.tsxandlinear-project-table-content.tsx.- Copy labels that fill
{{value0}} copied:Suggested branch nameinlinear-issue-workspace-sidebar.tsx, andURL,Key,Branch nameandPromptinjira-issue-workspace-actions.ts.
Checked without findings
- All 42
LEGACY_CODESstrings match a main or shared literal exactly, andIPC_INVOKE_PREFIXmatches Electron'sError invoking remote method '<channel>': Error:form. - The 180 added or changed ja values keep the
{{...}}placeholders and backticked commands of en, andrepairTranslatedValueleaves them unchanged.
| }, | ||
| "taskProviders": { | ||
| "linear": { | ||
| "updateAccess": "更新アクセス", |
There was a problem hiding this comment.
更新アクセス 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 アクセスを更新.
| "updateAccess": "更新アクセス", | |
| "updateAccess": "アクセスを更新", |
| "medium": "中", | ||
| "high": "高", | ||
| "max": "最大", | ||
| "xhigh": "非常に高い" |
There was a problem hiding this comment.
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.
| "xhigh": "非常に高い" | |
| "xhigh": "最高" |
| "serverCountOne": "サーバー {{count}} 台", | ||
| "serverCountMany": "サーバー {{count}} 台", |
There was a problem hiding this comment.
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.
| "serverCountOne": "サーバー {{count}} 台", | |
| "serverCountMany": "サーバー {{count}} 台", | |
| "serverCountOne": "サーバー {{count}} 件", | |
| "serverCountMany": "サーバー {{count}} 件", |
| "notConnected": "Jira に接続されていません。", | ||
| "titleRequired": "タイトルが必要です。", | ||
| "labelsConflict": "labels または labelOperations のどちらか一方を指定してください。", | ||
| "updateFailed": "issue を更新できませんでした。", |
There was a problem hiding this comment.
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,issueSearchLimittaskProviders.errors.linear:createdButUnavailable,viewHasNoIssuestaskProviders.linear:projectIssuesLoadFailed,issuesLoadFailedsourceControl.variables.linkedIssue(GitHub issue, twice)
| "updateFailed": "issue を更新できませんでした。", | |
| "updateFailed": "Issue を更新できませんでした。", |
| onLoadMore={handleLinearEmptyFilteredLoadMore} | ||
| loading={activeLinearIssueLoading} | ||
| loadMoreLabel="Fetch more" | ||
| loadMoreLabel={translate( |
There was a problem hiding this comment.
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.' |
There was a problem hiding this comment.
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]>
|
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
Could these go into this PR? |
- 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]>
|
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.
Verified: the four |
|
Warning Review limit reachedYou'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. View limit details
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. Comment |
[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. FindingsSummaryLocalizes provider failures, host status, shared labels, and native dialogs while keeping English wire errors.
|
| "schemaDriftDetail": "Impossible de lire cette vue de projet : {{detail}}." | ||
| }, | ||
| "columns": { | ||
| "type": "Tapez" |
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
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.
| "updateAccess": "Accès aux mises à jour", | |
| "updateAccess": "Mettre à jour l’accès", |
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.
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=2passed all 27 checks onfe95dc94b525(2,282 seconds), including affected unit tests, typechecks, localization gates, formatting, lint and ratchets. The focused review regression suites also passed (84 tests).