You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: GitHub project view errors and states show in English in every UI language #34589
The GitHub project view (the Tasks page with a GitHub project source) shows its errors and several states in English, whatever the UI language.
The main process returns each failure as { type, message } with an English message (src/main/github/project-view/*). The renderer shows error.message as-is in the error state, the project picker, the item dialog and the mutation toasts.
Some renderer copy never goes through translate, so the coverage gate does not see it: the layout names and the not found, too large and unsupported layout states in ProjectViewStates.tsx, the sign-in help in GhAuthErrorHelp.tsx, and a few picker and dialog fallbacks.
Examples with Japanese selected:
Pasting foo into the project picker shows "Expected a project URL or owner/number".
Opening a project while gh is signed out shows "Sign in to GitHub to load project tasks. Run gh auth login --hostname github.com."
This is part of item 3 in #32207. Linear and Jira follow in their own issues.
Proposed approach
Keep the English message for mobile, older clients and logs.
Add optional machine-readable fields to GitHubProjectViewError: a reason for the sentences one type does not identify (the not found variants and the paste checks), plus the rate limit numbers, the host for the sign-in commands, and the diagnostic text that follows an Orca prefix.
The renderer maps type and reason to translate(key, fallback) and wraps the remaining renderer literals. GitHub's own error text stays untranslated.
A host that sends no reason (older) still gets the sentences its type identifies translated, and falls back to message otherwise.
Goal
GitHub project view errors and states appear in the UI language for es, fr, ja, ko, pt and zh, and the English text stays unchanged.
Activity
fix(i18n): localize GitHub project view errors and states (#34621)