mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-08 05:39:49 -05:00
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/fosrl/pangolin/pull/2627
Author: @shreyaspapi
Created: 3/10/2026
Status: ✅ Merged
Merged: 3/30/2026
Merged by: @oschwartz10612
Base:
main← Head:fix/1547-persist-user-locale📝 Commits (2)
ae39084fix: persist user locale preference to database (#1547)5455d1cfix: add locale to myDevice user query to fix type error📊 Changes
9 files changed (+103 additions, -5 deletions)
View changed files
📝
server/db/pg/schema/schema.ts(+2 -1)📝
server/db/sqlite/schema/schema.ts(+2 -1)📝
server/routers/external.ts(+5 -0)📝
server/routers/user/getUser.ts(+2 -1)📝
server/routers/user/index.ts(+1 -0)📝
server/routers/user/myDevice.ts(+2 -1)➕
server/routers/user/updateUserLocale.ts(+57 -0)📝
src/components/LocaleSwitcherSelect.tsx(+7 -0)📝
src/services/locale.ts(+25 -1)📄 Description
Community Contribution License Agreement
By creating this pull request, I grant the project maintainers an unlimited,
perpetual license to use, modify, and redistribute these contributions under any terms they
choose, including both the AGPLv3 and the Fossorial Commercial license terms. I
represent that I have the right to grant this license for all contributed content.
Description
Fixes #1547
Language preference was only stored in a short-lived cookie, causing the dashboard to forget the selected language after about a day. This fix persists the user's locale to the database and restores it on login across devices.
Changes:
localecolumn to the user table (SQLite + PostgreSQL)POST /user/localeendpoint to save locale preferenceGET /usernow returns the savedlocalefieldHow to test?
NEXT_LOCALEcookie from browser dev tools🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.