I\'d like to show the current language that the device UI is using. What code would I use?
I want this as an NSString in fully spelled out format. (Not
NSString
Simple Swift 3 function:
@discardableResult func getLanguageISO() -> String { let locale = Locale.current guard let languageCode = locale.languageCode, let regionCode = locale.regionCode else { return "de_DE" } return languageCode + "_" + regionCode }