Xcode Get The iPhones Language

To get the locale language in your app on iPhone you can use the this example:

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

If you running english language on your iPhone you'll get this output:

localeIdentifier: en_GB

Other output could be

en_US
sv_SE
da_DK
de_DE

and so on.

Posted in Mac, Tips and Tricks Tagged with: , ,