Windows implementation may not be ideal #1

Open
opened 2024-12-10 21:05:05 -05:00 by michael · 0 comments
Owner

We currently use GetUserDefaultLocaleName, but that seems to return the user's chosen "regional format", not their preferred language.

To access that, we could instead use GetUserPreferredUILanguages.

We currently use [`GetUserDefaultLocaleName`](https://learn.microsoft.com/en-us/windows/win32/api/winnls/nf-winnls-getuserdefaultlocalename), but that seems to return the user's chosen "regional format", not their preferred language. To access that, we could instead use [`GetUserPreferredUILanguages`](https://learn.microsoft.com/en-us/windows/win32/api/winnls/nf-winnls-getuserpreferreduilanguages).
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
michael/get-locale.rs#1
No description provided.