When getting the current language of the device, we usually use the following API:

or

In iOS 8 and below, the above API will returns an NSArray of language code. For example:
"en", "ja", "es"

 

But in iOS 9, this changed! So if you are using this API in your code, you need to consider the new return value format. The return values are now in the format:
"<language code>-<region code>"

For example:
"en-US", "en-JP", "ja-US", "es-US"

 

Reference:
https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/Foundation/Classes/NSLocale_Class/index.html#//apple_ref/doc/uid/TP30001224-SW14

Happy Goals for iOS

Happy Goals for iOS

Want an app to help you track and achieve your goals, without the complex stuff, saving you from headaches? Checkout Happy Goals - Habits & Goals Tracker now in the App Store! Happy Goals has been featured in the App Store in over 32 countries. Start now, better late than never!

 

Thank you!

%d bloggers like this: