-
Notifications
You must be signed in to change notification settings - Fork 30.1k
Closed
Labels
a: desktopRunning on desktopRunning on desktopa: internationalizationSupporting other languages or locales. (aka i18n)Supporting other languages or locales. (aka i18n)platform-windowsBuilding on or for Windows specificallyBuilding on or for Windows specifically
Description
Currently, Flutter on Windows determines the default locales to assign to the platform configuration based on the value obtained by calling GetThreadPreferredUILanguages. This does not necessarily return the actual languages listed in the "Preferred Languages" setting. We should get the full list of preferred languages to use for application locales.
We can achieve this by querying the registry with
RegGetValueA(HKEY_CURRENT_USER, "Control panel\\International\\User Profile", "Languages", RRF_RT_REG_MULTI_SZ, NULL, str_buffer.data(), &buffer_size)
If this fails, we can fallback to the current implementation.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
a: desktopRunning on desktopRunning on desktopa: internationalizationSupporting other languages or locales. (aka i18n)Supporting other languages or locales. (aka i18n)platform-windowsBuilding on or for Windows specificallyBuilding on or for Windows specifically
Type
Projects
Status
Done