Skip to content

[Bug]: GitHub project view errors and states show in English in every UI language #34589

Closed

Description

@seijikohara

Operating system

All (macOS, Linux, Windows). The copy is built in the main process and the renderer, and shown on every platform.

Orca version

main @ 89dea21

Details

Problem

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

  1. added a commit that references this issue on Oct 28, 2026
    99199b2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions