Display locale language in full
- by Mihai Fonoage
Hi,
I am getting the user preferred language from the below code:
NSUserDefaults* defs = [NSUserDefaults standardUserDefaults];
NSArray* languages = [defs objectForKey:@"AppleLanguages"];
NSString *language = [languages objectAtIndex:0];
This will return something like 'en' for 'English', or 'de' for 'Deutsch'. Is there any way I can automatically get the full language name, i.e. English instead of en?
Thanks!
Mihai Fonoage