Per-user interface language #38

Closed
opened 2026-11-02 14:12:39 +01:00 by miko · 1 comment
Owner

Part of #1

Problem

ADR-0007 says the locale comes from "the user's setting, a cookie or Accept-Language", and its setup notes say the per-user setting "does not exist yet; when it comes, it goes before the cookie". User.locale exists in the schema ("Preferred interface locale; null follows the browser") but nothing reads or writes it.

Acceptance criteria

  • Decide: build it for v1 or drop the column and update ADR-0007
  • If built: signed-in users' language switch stores User.locale; resolveLocale prefers it over the cookie; null follows cookie / Accept-Language / the default locale setting
Part of #1 ## Problem ADR-0007 says the locale comes from "the user's setting, a cookie or `Accept-Language`", and its setup notes say the per-user setting "does not exist yet; when it comes, it goes before the cookie". `User.locale` exists in the schema ("Preferred interface locale; null follows the browser") but nothing reads or writes it. ## Acceptance criteria - [ ] Decide: build it for v1 or drop the column and update ADR-0007 - [ ] If built: signed-in users' language switch stores `User.locale`; `resolveLocale` prefers it over the cookie; null follows cookie / `Accept-Language` / the default locale setting
Author
Owner

Decided to build it for v1. Implemented in PR #44: User.locale is stored by the language switch for signed-in users and wins over the cookie; null falls through to cookie / Accept-Language / default locale. ADR-0007 updated.

Decided to build it for v1. Implemented in PR #44: User.locale is stored by the language switch for signed-in users and wins over the cookie; null falls through to cookie / Accept-Language / default locale. ADR-0007 updated.
miko closed this issue 2026-11-02 18:57:55 +01:00
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
MassiveDynamic/kataba#38
No description provided.