docs(adr-0010): correct the i18n paragraph to match the built routing #100

Sammanfogat
supernaut sammanfogade 1 incheckning från work/72 in i main 2026-09-21 06:51:47 +00:00
Ägare

ADR 0010 said the portal auto-detects English via Accept-Language with a cookie-backed switcher. Neither exists.

Verified against bitborg-web:

  • astro.config.mjs sets defaultLocale: "sv", locales: ["sv", "en"], routing.redirectToDefaultLocale: false. No detection config.
  • src/middleware.ts reads the auth session and sets cache headers. No locale logic.
  • No Accept-Language, navigator.language or locale cookie anywhere under src/.
  • src/components/language-switcher.astro renders static links to the sibling-locale path. No client script, no cookie.

The i18n paragraph now describes static locale-prefixed routing plus the in-page switcher.

Corrected in place rather than amended. The amendment convention here records a decision that changed after it was made. This sentence describes a mechanism that was never built, so there is no decision change to keep visible.

The Forgejo LANGS sentence is Forgejo's own behaviour and is untouched.

Closes #72

ADR 0010 said the portal auto-detects English via `Accept-Language` with a cookie-backed switcher. Neither exists. Verified against bitborg-web: - `astro.config.mjs` sets `defaultLocale: "sv"`, `locales: ["sv", "en"]`, `routing.redirectToDefaultLocale: false`. No detection config. - `src/middleware.ts` reads the auth session and sets cache headers. No locale logic. - No `Accept-Language`, `navigator.language` or locale cookie anywhere under `src/`. - `src/components/language-switcher.astro` renders static links to the sibling-locale path. No client script, no cookie. The i18n paragraph now describes static locale-prefixed routing plus the in-page switcher. Corrected in place rather than amended. The amendment convention here records a decision that changed after it was made. This sentence describes a mechanism that was never built, so there is no decision change to keep visible. The Forgejo `LANGS` sentence is Forgejo's own behaviour and is untouched. Closes #72
supernaut lade till 1 incheckning 2026-09-20 22:20:29 +00:00
docs(adr-0010): correct i18n paragraph to match the built routing
Alla kontroller lyckades
ci / ci (pull_request) Successful in 12s
7ee730ee4c
supernaut tvångsskickade work/72 från 7ee730ee4c
Alla kontroller lyckades
ci / ci (pull_request) Successful in 12s
till d21b5a27be
Alla kontroller lyckades
ci / ci (pull_request) Successful in 13s
2026-09-21 06:50:34 +00:00
Jämför
supernaut sammanfogade incheckning 6fea2d940d till main 2026-09-21 06:51:47 +00:00
supernaut tog bort grenen work/72 2026-09-21 06:51:47 +00:00
Logga in för att delta i denna konversation.
Inga granskare
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Förfallodatumet är ogiltigt eller utanför gränserna. Använd formatet "åååå-mm-dd".

Inget förfallodatum satt.

Beroenden

Inga beroenden satta

Referens
bitborg/bitborg-docs!100
Ingen beskrivning angiven.