Per-user interface language (#38) #44
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MassiveDynamic/kataba!44
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/38-per-user-locale"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #38.
Decision: build it for v1 (the column already existed; wiring it up is small).
resolveLocaleprefers the signed-in user'sUser.localeover the cookie; null or unsupported values fall through to cookie → Accept-Language → instance default locale.getLocalereads the current user;CurrentUsernow includeslocale.setLocaleaction still sets the cookie and, for signed-in users, also storesUser.locale.User.localeschema comment updated (comment only, no migration).Tests: unit tests for the resolution order; e2e
e2e/locale.spec.tschecks that a choice made in one browser carries over to a second browser that has an English cookie, using a dedicatedpolyglottest user.Note: translated renders now also resolve the session (
auth()+ one user lookup, deduped per request), including for guests.🤖 Generated with Claude Code