-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Closed
Labels
dependency: dartDart team may need to help usDart team may need to help us
Description
Steps to Reproduce
- Start an android emulator
- Change the locale (Settings > Languages & input > Languages, then either add a non-english one or sort a non-English one to the top of the list).
- Start a flutter app that includes the line
print(Platform.localeName);, note that the output is always 'en_US'
Expected behavior
Platform.localeName should return the locale string that is associated with the language at the top of the list in the settings app.
A MaterialApp's localizationsDelegate does (eventually) load the correct locale, so it is available there, but there shouldn't be a discrepancy between the values (even at this later point, where the localizationsDelegate is passed the correct locale, Platform.localeName still returns 'en_US').
Metadata
Metadata
Assignees
Labels
dependency: dartDart team may need to help usDart team may need to help us