How to get language locale of the user in Objective-C?

localization, macos, objective-c

Solution

NSLog(@"localeIdentifier: %@", [[NSLocale currentLocale] localeIdentifier]);

Problem

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 information of which language is used?

Original source