Skip to content

The OAuth consent screen is English-only #950

Closed

Description

@richshaw

Needs your OK: this shows the screen where an organizer approves an AI assistant in the organizer's language, and the OAuth error pages in the site's default language. It touches OAuth. English stays word for word the same. Swap pipeline:proposed for pipeline:ready to have it built.

What happens

About 35 English strings in:

  • src/app/oauth/consent/[uid]/page.tsx and consent-form.tsx (a client component): the approval screen;
  • src/oauth/scopes.ts: SCOPE_DESCRIPTIONS, what each permission lets the app do, which the screen lists (commitments:read flagged in amber);
  • src/app/oauth/consent/[uid]/decision/route.ts: its replies, through renderErrorPage;
  • src/oauth/provider.ts: renderErrorPage, a hand-written HTML page with <html lang="en">, for every OAuth error a person sees in the browser;
  • src/oauth/handler.ts: the rate-limit page, "Too many requests. Wait {wait} and try again."

The consent page reads the organizer's session (getOrganizerSession). The error pages and the rate-limit reply have none.

Fix, in outline

  • Consent in the organizer's language (The organizer app ignores the organizer's language #937's helper), since they're signed in by then (owner, 15 November 2026).
  • Error pages and the rate-limit page in the site default, else English: defaultFor('organizer', instanceDefaultLocale()). renderErrorPage takes the language and sets <html lang> from it.
  • The rules from The organizer app ignores the organizer's language #937, under auth.consent and auth.oauthErrors: one ICU message per sentence, English byte for byte as today, and the files in TRANSLATED in eslint.config.mjs.
  • What stays as it is: the app's name and details as its client metadata gives them, scope names, and the JSON error_description that clients read, which stays English for developers.
  • The consent form is a client component. Pass its few strings as props: the page has no budget of its own and falls under * (108 KB), which every unlisted page shares.

Watch for

  • The amber warning on commitments:read must still stand out in every language, and keep saying that participants' emails are shared.
  • The node shim and the query string. The consent and error paths run through src/oauth/node-shim.ts and handleOAuthRequest. Don't change how requests reach the provider.
  • docs/connect-ai-assistant.md describes the permissions in English. It stays English.
  • The help walkthrough for connecting an AI assistant finds the permissions by their English names (connect-an-ai-assistant.ui.ts). Unchanged English keeps it green.

Order

Built on the localization stack (top: #936); see #619. After #937 (the organizer's language helper) and #948 (the auth namespace).

Gate

Owner. It's OAuth (src/oauth/), which goes to the owner even with no visible change.

Done when

  • With an organizer's stored test language (The organizer app ignores the organizer's language #937), the consent screen and its scope descriptions render that language; the error and rate-limit pages follow the site default, else English, with a matching <html lang>.
  • English is unchanged: the existing unit, db, e2e and help walkthrough specs pass without edits to their expected text.
  • The files are in TRANSLATED, and no budget is raised.
  • pnpm lint && pnpm format:check && pnpm typecheck && pnpm knip && pnpm test, pnpm test:db (OAuth changes), and pnpm build && pnpm budgets pass.

Phase 2 of #619, from the owner's decisions of 14 and 15 November 2026 and a survey of the organizer code. Checked against the localization stack at 750e570 (top: #936), which isn't on main yet.

https://claude.ai/code/session_016YZ9SVnYjqfPQCMgeA7pDt

Activity

  1. added
    enhancement
    pipeline:ux
    pipeline:working
    and removed on Nov 15, 2026
  2. self-assigned this
    on Nov 15, 2026
  3. removed
    pipeline:working
    on Nov 15, 2026
  4. added 2 commits that reference this issue on Nov 15, 2026
  5. removed
    pipeline:ux
    on Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions