Skip to content

fix(settings): language picker follows the active locale (#271) - #278

Merged
jakub-przepiora merged 3 commits into
developfrom
fix/settings-language-picker
Aug 31, 2026
Merged

fix(settings): language picker follows the active locale (#271)#278
jakub-przepiora merged 3 commits into
developfrom
fix/settings-language-picker

Conversation

@jakub-przepiora

Copy link
Copy Markdown
Contributor

Closes #271.

The language picker showed a different language than the page

Settings → System → Language read only the stored system-default language (system_settings.language). But the page itself renders in the currently effective locale — the per-session override set by the language switcher (/locale/{locale}), falling back to the system default. So after switching the UI to English, the picker still showed Polski, contradicting the English page.

Reproduced on a local box: /locale/en → the whole UI is English, but the picker read "Polski". After the fix it reads "English".

Fix

SettingsController now sources the picker from app()->getLocale() (the locale SetLocale already applied for the request) instead of the raw system-default row, so the picker always matches the language on screen. Added a regression test (system default pl + session override en → picker shows en).

🤖 Generated with claude-flow

The Settings → System language dropdown read only the stored system-default
language, so after changing the UI language with the per-session switcher the
picker showed a different language than the page was rendered in. Show the
currently effective locale (session override if set, else the system default)
so the picker matches what the user sees. Closes #271.
@coderabbitai

coderabbitai Bot commented Aug 31, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one) (1)
  • cla-signed

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: eb7eae27-ed18-4d90-81e7-e65343c38b8d

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

WorkstationFactory generated a random 3-letter code (WS-???, only 26^3 = 17,576
values), so a run that created several workstations could hit the
workstations.code unique index by chance (UniqueConstraintViolationException in
MachineCountToProducedQtyTest). Add faker unique() so the code can never repeat.
Unrelated to the language fix; it was a pre-existing CI flake surfaced here.
@jakub-przepiora
jakub-przepiora merged commit d99be5b into develop Aug 31, 2026
2 checks passed
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