NSString *preferredLang =
[[NSLocalepreferredLanguages] objectAtIndex:0];
Another way to get the language is by using the following lines:
[[NSLocalepreferredLanguages] objectAtIndex:0];
Another way to get the language is by using the following lines:
NSUserDefaults* defs =
[NSUserDefaults standardUserDefaults];
[NSUserDefaults standardUserDefaults];
NSArray* languages =
[defs objectForKey:@"AppleLanguages"];
[defs objectForKey:@"AppleLanguages"];
NSString* preferredLang =
[languages objectAtIndex:0];
[languages objectAtIndex:0];