i18n: the sign-in page follows the community's primary language (idss-idp bridge) #2132

Open
opened 2026-11-03 19:24:04 +00:00 by matou-build-agent · 1 comment

What

The community's primary language is now a community fact (idss/primary-language, #2122) and the services that have a server-side default (Nextcloud, Omeka) come up in it. The sign-in page the member meets is the idss-idp bridge's own HTML (internal/idp/appdoorpage.go), today hard-coded <html lang="en"> with English copy ("… — sign in", "sign in with your twelve words instead", "Back to the control panel", "… — unlock steward actions"). It is IDSS-owned, so it CAN be localised to the community default — but that needs the sign-in strings extracted into the i18n catalogue (ADR 0232) first.

Scope

  • Extract the appdoorpage strings into the i18n catalogue (ADR 0232 shape: keyed, en authoritative).
  • Render the sign-in page in the community's primary language (read clan.ReadCommunityLanguage), with the <html lang> attribute set to match; fall back to en.
  • A member's browser Accept-Language or explicit choice still wins where that makes sense for a pre-auth page (decide and record).
  • en communities byte-for-byte unchanged.

Acceptance

  • A community founded with es serves the sign-in page in Spanish, proved by a render/seam test.

Notes

Split from #2122 (the per-service language default). Related: ADR 0232, DDR 0300 decision 6. Per-service support table: docs/i18n/service-language-support.md.

## What The community's primary language is now a community fact (`idss/primary-language`, #2122) and the services that have a server-side default (Nextcloud, Omeka) come up in it. The **sign-in page** the member meets is the idss-idp bridge's own HTML (`internal/idp/appdoorpage.go`), today hard-coded `<html lang="en">` with English copy ("… — sign in", "sign in with your twelve words instead", "Back to the control panel", "… — unlock steward actions"). It is IDSS-owned, so it CAN be localised to the community default — but that needs the sign-in strings extracted into the i18n catalogue (ADR 0232) first. ## Scope - [ ] Extract the appdoorpage strings into the i18n catalogue (ADR 0232 shape: keyed, `en` authoritative). - [ ] Render the sign-in page in the community's primary language (read `clan.ReadCommunityLanguage`), with the `<html lang>` attribute set to match; fall back to `en`. - [ ] A member's browser `Accept-Language` or explicit choice still wins where that makes sense for a pre-auth page (decide and record). - [ ] `en` communities byte-for-byte unchanged. ## Acceptance - [ ] A community founded with `es` serves the sign-in page in Spanish, proved by a render/seam test. ## Notes Split from #2122 (the per-service language default). Related: ADR 0232, DDR 0300 decision 6. Per-service support table: `docs/i18n/service-language-support.md`.
Author
Member

This was generated by AI during triage.

Ruled by agent under ADR 0174 — veto anytime.

Category: enhancement. State: ready-for-agent (blocked by #2122).

Ruling. This localises an existing, IDSS-owned page — the idss-idp bridge sign-in HTML at internal/idp/appdoorpage.go — in place. The hard-coded English and <html lang="en"> are confirmed there: the title … — sign in / … — unlock steward actions (lines 76, 83), sign in with your twelve words instead (line 81), Back to the control panel (line 89), lang="en" (line 112). The work is the ADR 0232 Go-seam shape: extract these strings into the catalogue (keyed, en authoritative, key + params — ADR 0232 decisions 2 and 5), render them against the community's primary language, set <html lang> to match, fall back to en.

Why ready-for-agent, not needs-design. The missing-design gate does not fire: no UX flow or wireframe file is referenced that doesn't exist — the page already exists and only its copy changes (layout and flow are untouched), and the i18n seam contract it builds against is ADR 0232 (docs/adr/0232-design-the-i18n-seam.md, present). This is the same shape the sibling Go-seam i18n tickets (#2131, #2129, #2130) carry as ready-for-agent.

The one judgment residue — a two-way door. Scope item "a member's browser Accept-Language or explicit choice still wins where that makes sense for a pre-auth page (decide and record)" is agent-decidable: it is not on the one-way-door list (no personal credentials, no security-posture widening, no member-facing trust accept, no data destruction, no spend), it is revertible by a later commit, and it is provable by a seam test. The agent records the chosen precedence inline (DDR 0300 d.6 is the home) and proves it. This mirrors #2122's ruling that the per-service "which languages / fallback" questions are investigations, not human decisions.

Why it is proved, not just asserted. An existing seam-test home already drives this exact page — internal/idp/appdoorpage_seam_test.go (WS-S1). The acceptance ("a community founded with es serves the sign-in page in Spanish, proved by a render/seam test") extends that test. en communities stay byte-for-byte unchanged (acceptance says so). All revertible by commit.

Blocked by #2122 (native dependency wired). This reads clan.ReadCommunityLanguage, which is not on main — #2122's push-mode close was rolled back (push-rescue-unreachable) and the ticket was reopened as ready-for-session; docs/i18n/service-language-support.md (referenced in Notes) is likewise un-landed. The swarm must not pick this up until #2122 closes, so it is wired blocked-by #2122 (same as #2123).

> *This was generated by AI during triage.* **Ruled by agent under ADR 0174 — veto anytime.** **Category:** enhancement. **State:** `ready-for-agent` (blocked by #2122). **Ruling.** This localises an **existing, IDSS-owned** page — the idss-idp bridge sign-in HTML at `internal/idp/appdoorpage.go` — in place. The hard-coded English and `<html lang="en">` are confirmed there: the title `… — sign in` / `… — unlock steward actions` (lines 76, 83), `sign in with your twelve words instead` (line 81), `Back to the control panel` (line 89), `lang="en"` (line 112). The work is the ADR 0232 Go-seam shape: extract these strings into the catalogue (keyed, `en` authoritative, key + params — ADR 0232 decisions 2 and 5), render them against the community's primary language, set `<html lang>` to match, fall back to `en`. **Why `ready-for-agent`, not `needs-design`.** The missing-design gate does not fire: no UX flow or wireframe file is referenced that doesn't exist — the page already exists and only its copy changes (layout and flow are untouched), and the i18n seam contract it builds against is ADR 0232 (`docs/adr/0232-design-the-i18n-seam.md`, present). This is the same shape the sibling Go-seam i18n tickets (#2131, #2129, #2130) carry as `ready-for-agent`. **The one judgment residue — a two-way door.** Scope item "a member's browser `Accept-Language` or explicit choice still wins where that makes sense for a pre-auth page (decide and record)" is agent-decidable: it is not on the one-way-door list (no personal credentials, no security-posture widening, no member-facing trust accept, no data destruction, no spend), it is revertible by a later commit, and it is provable by a seam test. The agent records the chosen precedence inline (DDR 0300 d.6 is the home) and proves it. This mirrors #2122's ruling that the per-service "which languages / fallback" questions are investigations, not human decisions. **Why it is proved, not just asserted.** An existing seam-test home already drives this exact page — `internal/idp/appdoorpage_seam_test.go` (WS-S1). The acceptance ("a community founded with `es` serves the sign-in page in Spanish, proved by a render/seam test") extends that test. `en` communities stay byte-for-byte unchanged (acceptance says so). All revertible by commit. **Blocked by #2122 (native dependency wired).** This reads `clan.ReadCommunityLanguage`, which is **not on `main`** — #2122's push-mode close was rolled back (`push-rescue-unreachable`) and the ticket was reopened as `ready-for-session`; `docs/i18n/service-language-support.md` (referenced in Notes) is likewise un-landed. The swarm must not pick this up until #2122 closes, so it is wired blocked-by #2122 (same as #2123).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/idss#2132
No description provided.