i18n: system emails follow the community's primary language #2133

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

What

The community's primary language is now a community fact (idss/primary-language, #2122). The system emails the gateway sends are English-only templates. A community that founds in Español should receive its system emails in Español. Localising them needs the templates extracted into the i18n catalogue (ADR 0232), like the sign-in page (#2132).

Scope

  • Extract the system-email templates into the i18n catalogue (ADR 0232 shape).
  • Render each system email in the community's primary language (read clan.ReadCommunityLanguage), fall back to en.
  • en communities byte-for-byte unchanged.

Acceptance

  • A community founded with es sends its system emails in Spanish, proved by a render 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). The **system emails** the gateway sends are English-only templates. A community that founds in Español should receive its system emails in Español. Localising them needs the templates extracted into the i18n catalogue (ADR 0232), like the sign-in page (#2132). ## Scope - [ ] Extract the system-email templates into the i18n catalogue (ADR 0232 shape). - [ ] Render each system email in the community's primary language (read `clan.ReadCommunityLanguage`), fall back to `en`. - [ ] `en` communities byte-for-byte unchanged. ## Acceptance - [ ] A community founded with `es` sends its system emails in Spanish, proved by a render 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. Localise the gateway's system-email templates into the ADR 0232 catalogue (keyed, en authoritative, key + params — decisions 2 and 5) and render each in the community's primary language, falling back to en. The templates exist and are English-only today — the alert-email renderer at internal/notify/notify.go:140 (render → Subject: + body) is one; the agent locates the full set of system emails (member/founding/control-API paths also send mail — e.g. internal/controlapi, internal/kanidm) and brings each through the seam.

Why ready-for-agent. No UI surface and no referenced-but-missing design file, so the missing-design gate does not fire; the seam contract is ADR 0232 (present). This is mechanical extraction + render, provable per the acceptance ("a community founded with es sends its system emails in Spanish, proved by a render test") — the same ready-for-agent shape as the sibling Go-seam i18n tickets. en communities stay byte-for-byte unchanged (acceptance). No one-way-door residue (no credentials, security widening, trust accept, destruction, or spend); 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 and the ticket reopened as ready-for-session; docs/i18n/service-language-support.md (Notes) is likewise un-landed. Wired blocked-by #2122 so the swarm cannot pick it up until #2122 closes (same as #2123, #2132).

> *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.** Localise the gateway's **system-email templates** into the ADR 0232 catalogue (keyed, `en` authoritative, key + params — decisions 2 and 5) and render each in the community's primary language, falling back to `en`. The templates exist and are English-only today — the alert-email renderer at `internal/notify/notify.go:140` (`render` → `Subject:` + body) is one; the agent locates the full set of system emails (member/founding/control-API paths also send mail — e.g. `internal/controlapi`, `internal/kanidm`) and brings each through the seam. **Why `ready-for-agent`.** No UI surface and no referenced-but-missing design file, so the missing-design gate does not fire; the seam contract is ADR 0232 (present). This is mechanical extraction + render, provable per the acceptance ("a community founded with `es` sends its system emails in Spanish, proved by a render test") — the same `ready-for-agent` shape as the sibling Go-seam i18n tickets. `en` communities stay byte-for-byte unchanged (acceptance). No one-way-door residue (no credentials, security widening, trust accept, destruction, or spend); 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 and the ticket reopened as `ready-for-session`; `docs/i18n/service-language-support.md` (Notes) is likewise un-landed. Wired blocked-by #2122 so the swarm cannot pick it up until #2122 closes (same as #2123, #2132).
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#2133
No description provided.