i18n (Go seam): join CLI surface (cli.go) — terminal i18n mechanism (design) #2158

Open
opened 2026-11-04 14:10:52 +00:00 by matou-build-agent · 0 comments

This was generated by AI during triage.

What

Carved out of #2154 (the #2130 member + join i18n remainder) during triage under ADR 0174 — the join CLI surface is out of the seam pattern and needs a mechanism decided before it can be built.

The headless join (internal/join/cli.go, printRejection et al.) renders the same join domain to a terminal — no vue-i18n, no resolveSeamText app-side resolver. The key+params seam the rest of the i18n work rides on structurally does not reach a Go binary writing to stdout: "Full install — wipe → community OS", "Most reliable · hard to reverse", the role question, the no-consent line, and rej.Headline / NeedVsGot are all rendered server-side with no JS catalogue downstream.

Why needs-design

There is no contract for how a Go CLI carries and resolves locale. That mechanism (the design tier) has to be decided before an agent can key cli.go — it is a distinct mechanism question, not the established seam swap. This mirrors how internal/idp's server-rendered HTML was routed to its own design ruling (#2138 → #2132) rather than folded into the seam remainder.

Suggested direction for the design run (not a ruling): decide the locale source (a --locale / LANG flag vs. inheriting the community's idss/primary-language, #2122) and the catalogue mechanism (e.g. golang.org/x/text/message printer vs. a small in-package map), with authored en + es/nl/fr/pt drafts and a DDR recording the choice. Once the mechanism is decided it becomes an ordinary ready-for-agent build.

Parent: #2121. Carved from #2154 (ADR 0174). Related: #2138 (the idp server-rendered-HTML locale design question).

> *This was generated by AI during triage.* ## What Carved out of #2154 (the #2130 member + join i18n remainder) during triage under ADR 0174 — the join **CLI** surface is out of the seam pattern and needs a mechanism decided before it can be built. The headless join (`internal/join/cli.go`, `printRejection` et al.) renders the same join domain to a **terminal** — no vue-i18n, no `resolveSeamText` app-side resolver. The key+params seam the rest of the i18n work rides on structurally does not reach a Go binary writing to stdout: "Full install — wipe → community OS", "Most reliable · hard to reverse", the role question, the no-consent line, and `rej.Headline` / `NeedVsGot` are all rendered server-side with no JS catalogue downstream. ## Why needs-design There is no contract for how a Go CLI carries and resolves locale. That mechanism (the design tier) has to be decided before an agent can key `cli.go` — it is a distinct mechanism question, not the established seam swap. This mirrors how `internal/idp`'s server-rendered HTML was routed to its own design ruling (#2138 → #2132) rather than folded into the seam remainder. **Suggested direction for the design run (not a ruling):** decide the locale source (a `--locale` / `LANG` flag vs. inheriting the community's `idss/primary-language`, #2122) and the catalogue mechanism (e.g. `golang.org/x/text/message` printer vs. a small in-package map), with authored `en` + `es/nl/fr/pt` drafts and a DDR recording the choice. Once the mechanism is decided it becomes an ordinary `ready-for-agent` build. Parent: #2121. Carved from #2154 (ADR 0174). Related: #2138 (the idp server-rendered-HTML locale design question).
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.

Dependencies

No dependencies set.

Reference
Matou/idss#2158
No description provided.