I want get the language code of the device (en, es...) in my app written with Swift. How can get this?
I\'m trying this:
var preferredLanguages : NSL
you may use the below code it works fine with swift 3
var preferredLanguage : String = Bundle.main.preferredLocalizations.first!