You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
I investigated an issue on iOS, why easy_localization won't use my device language.
I figured out that
![Screen Shot 2023-07-05 at 23 44 08](https://private-user-images.githubusercontent.com/11667234/251187864-44824ece-8ddb-4ff6-ad6e-0949fcc8e6b5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA1MjE4OTMsIm5iZiI6MTcyMDUyMTU5MywicGF0aCI6Ii8xMTY2NzIzNC8yNTExODc4NjQtNDQ4MjRlY2UtOGRkYi00ZmY2LWFkNmUtMDk0OWZjYzhlNmI1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA5VDEwMzk1M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE4NmUzZWJkNmNiY2Q1M2NmMDExZTE3OThlMjY2Y2UyYmZlYjdkOTIxZDE5NWFjMTIwZWM0ZmExMmNiNzM0YTkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.38LqE9STK53_qG32e9w5ZxJiPV12AWmX2CMDSiDz8Tg)
findSystemLocale()
returns justen
on iOS (tested with iOS 16.2) and then comparing supportedLocales (e.g.Locale('en','US')
) will not be recognized duringlocale.supports(deviceLocale)
and it will always returnfalse
.Workaround - don't use country code for your translation files and supportedLocales
The text was updated successfully, but these errors were encountered: