Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

en_US writing style doesn't work on iOS #599

Open
Fintasys opened this issue Jul 5, 2023 · 1 comment
Open

en_US writing style doesn't work on iOS #599

Fintasys opened this issue Jul 5, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@Fintasys
Copy link

Fintasys commented Jul 5, 2023

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.
Screen Shot 2023-07-05 at 23 44 08

Workaround - don't use country code for your translation files and supportedLocales

@bw-flagship
Copy link
Collaborator

Thanks for the investigation!

@bw-flagship bw-flagship added the bug Something isn't working label Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants