Skip to content

🐛(frontend) stop overwriting saved language on page load#1414

Open
rezk2ll wants to merge 1 commit into
suitenumerique:mainfrom
rezk2ll:fix/stop-overwriting-saved-language
Open

🐛(frontend) stop overwriting saved language on page load#1414
rezk2ll wants to merge 1 commit into
suitenumerique:mainfrom
rezk2ll:fix/stop-overwriting-saved-language

Conversation

@rezk2ll

@rezk2ll rezk2ll commented Jun 8, 2026

Copy link
Copy Markdown

Problem

Every page load pushes the browser's detected language back to the user endpoint, overwriting whatever the server had. A language saved in settings gets reverted whenever it disagrees with the browser locale, so signing in from a different browser locale silently changes the saved preference.

#1363

Solution

Treat the saved language as the source of truth: adopt it into the UI on load, and PUT only when the user picks a language in the settings panel. Timezone keeps following the browser as before.

Adopt the server language as the source of truth on load and push only
on a user-driven change. Timezone keeps following the browser.
@sonarqubecloud

sonarqubecloud Bot commented Jun 8, 2026

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant