I am developing an application for Mac OS X. I want to change indication contents by the language locale (English, Spanish, etc.) of the application user, how do I get informati
you can use any way of both ways below:
NSString *language = [[NSLocale currentLocale] localeIdentifier]; NSLog(@"Language: %@", language);
output: Language: en_US
or this:
NSString *language = [[NSLocale preferredLanguages] objectAtIndex:0]; NSLog(@"Language: %@", language);
output: Language: en