Skip to content

i18n: use GetUserPreferredUILanguages on Windows and NSLocale on macOS#2256

Merged
flyinghead merged 2 commits intoflyinghead:masterfrom
vkedwardli:fix-desktop-locale
Feb 23, 2026
Merged

i18n: use GetUserPreferredUILanguages on Windows and NSLocale on macOS#2256
flyinghead merged 2 commits intoflyinghead:masterfrom
vkedwardli:fix-desktop-locale

Conversation

@vkedwardli
Copy link
Collaborator

  • Windows: Switched to GetUserPreferredUILanguages(MUI_LANGUAGE_NAME, ...) to correctly follow the user's Display Language instead of just their Regional Format (date/currency).
  • macOS: Replaced the unreliable setlocale (which often returns "C") with a native implementation using NSLocale to match the "Preferred Languages" in System Settings.

@flyinghead flyinghead merged commit 55d310b into flyinghead:master Feb 23, 2026
19 of 33 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.

2 participants