mirror of
https://github.com/stablyai/orca.git
synced 2026-11-18 20:06:10 +00:00
* fix(i18n): localize provider failures and remaining shared UI copy 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 <9543980+seijikohara@users.noreply.github.com> Co-authored-by: Evgenii <413011+smwbev@users.noreply.github.com> * test(i18n): assert stable task provider failure codes * test(i18n): exercise goal notice fallback with an older language pack * fix(i18n): address provider error and live title review findings 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 <9543980+seijikohara@users.noreply.github.com> * fix(i18n): finish provider and shared-copy localization for all locales - 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 <413011+smwbev@users.noreply.github.com> --------- Co-authored-by: Seiji Kohara <9543980+seijikohara@users.noreply.github.com> Co-authored-by: Evgenii <413011+smwbev@users.noreply.github.com> Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
51 lines
1.4 KiB
TypeScript
51 lines
1.4 KiB
TypeScript
export type TaskProviderErrorCode =
|
|
| 'linear.issuesLoadFailed'
|
|
| 'linear.notConnected'
|
|
| 'linear.createFailed'
|
|
| 'linear.createdButUnavailable'
|
|
| 'linear.updateFailed'
|
|
| 'linear.commentFailed'
|
|
| 'linear.projectCreateFailed'
|
|
| 'linear.noApiKey'
|
|
| 'linear.workspaceAuthExpired'
|
|
| 'linear.projectNameRequired'
|
|
| 'linear.projectIdRequired'
|
|
| 'linear.projectNotFound'
|
|
| 'linear.viewIdRequired'
|
|
| 'linear.viewHasNoIssues'
|
|
| 'linear.viewHasNoProjects'
|
|
| 'jira.notConnected'
|
|
| 'jira.titleRequired'
|
|
| 'jira.labelsConflict'
|
|
| 'jira.createFailed'
|
|
| 'jira.updateFailed'
|
|
| 'jira.commentFailed'
|
|
| 'jira.credentialsRequired'
|
|
| 'jira.projectRequired'
|
|
| 'jira.issueTypeRequired'
|
|
| 'jira.issueKeyRequired'
|
|
| 'jira.updatesRequired'
|
|
| 'jira.commentBodyRequired'
|
|
| 'jira.invalidSiteUrl'
|
|
| 'jira.passwordRequired'
|
|
| 'jira.personalTokenRequired'
|
|
| 'jira.apiTokenRequired'
|
|
| 'jira.connectionFailed'
|
|
| 'jira.invalidSiteIdentity'
|
|
| 'jira.missingProjectIdentity'
|
|
| 'jira.invalidIssuePage'
|
|
| 'jira.incompleteIssuePage'
|
|
| 'jira.repeatedIssueToken'
|
|
| 'jira.issueSearchLimit'
|
|
| 'jira.invalidProjectPage'
|
|
| 'jira.incompleteProjectPage'
|
|
| 'jira.projectListLimit'
|
|
| 'jira.invalidCloudId'
|
|
|
|
export function taskProviderFailure(
|
|
errorCode: TaskProviderErrorCode,
|
|
error: string
|
|
): { ok: false; error: string; errorCode: TaskProviderErrorCode } {
|
|
return { ok: false, error, errorCode }
|
|
}
|