In the device settings, I am able to select "French" with no country specified.
The Flutter code (WidgetsBinding.instance.platformDispatcher.locale) returns "fr_ES", which is weird, but the same thing happens with "fr_CA"
My app locales are "es", "fr_FR", and "fr_BE".
Inspecting the code, I see that:
There is no exact match
There is more than one candidate that matches the langaugeCode
There is a non-null countryCode to match
No candidate matches the countryCode
baseLocale is returned at singleton.dart:109 (in my case, "es")
Is this expected behavior? Should the first candidate of the same language take precedence over the baseLocale?
Should I report that "fr_ES" weird thing to the Flutter team?
I have seen this in the iOS simulator.
WidgetsBinding.instance.platformDispatcher.locale
) returns "fr_ES", which is weird, but the same thing happens with "fr_CA"Inspecting the code, I see that:
Is this expected behavior? Should the first candidate of the same language take precedence over the baseLocale? Should I report that "fr_ES" weird thing to the Flutter team?
Thanks for your work.