I'm trying to get the correct language in my device (is NOT in the SIMULATOR) with the following code:
NSString * languageLocale = [[NSLocale preferredLanguages] objectAtIndex:0];
And it is always 'en' but my current language is set to Spanish
Any thoughts why is retrieving always 'en' and not the current device language?
I've to face the same issue. In my case, it was solved by setting the Application Language as System Language in Edit Scheme.
Here is the way:
Edit Scheme -> Options -> Application language -> System Language.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With