Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter app's system locale is always en_US on Windows 10

Tags:

flutter

What may be a reason that I get en_US as system locale from PlatformDispatcher.instance.locale and window.locale on Windows 10? This is true for debug and release builds. I expect to get uk_Ua.

cmd output:

System Locale:   uk;Ukrainian
Input Locale:    en-us;English (United States)
like image 330
Oleksa Avatar asked Dec 14 '25 19:12

Oleksa


1 Answers

So, that is very strange, but if you go to the Windows language settings, then move Ukrainian language to the top (so it will be default input language), then you will get correct system locale:

Windows language settings

But if you set the English first, then the app will get en_US.

That is weird, because Ukrainian is selected as country and as the UI language on the same page. It seems like a bug.

like image 68
Dmitry Sikorsky Avatar answered Dec 16 '25 12:12

Dmitry Sikorsky



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!