Repository navigation
Description
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.tsxandconsent-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:readflagged in amber);src/app/oauth/consent/[uid]/decision/route.ts: its replies, throughrenderErrorPage;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()).renderErrorPagetakes the language and sets<html lang>from it. - The rules from The organizer app ignores the organizer's language #937, under
auth.consentandauth.oauthErrors: one ICU message per sentence, English byte for byte as today, and the files inTRANSLATEDineslint.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_descriptionthat 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:readmust 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.tsandhandleOAuthRequest. Don't change how requests reach the provider. docs/connect-ai-assistant.mddescribes 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), andpnpm build && pnpm budgetspass.
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.
Activity
Merge #965 (restacked on track A) into #966
Merge #966 (restacked on track A) into #969