easy_localization
easy_localization copied to clipboard
en_US writing style doesn't work on iOS
I investigated an issue on iOS, why easy_localization won't use my device language.
I figured out that findSystemLocale()
returns just en
on iOS (tested with iOS 16.2) and then comparing supportedLocales (e.g. Locale('en','US')
) will not be recognized during locale.supports(deviceLocale)
and it will always return false
.
Workaround - don't use country code for your translation files and supportedLocales
Thanks for the investigation!