Locale
struct Locale : Hashable, Equatable, ReferenceConvertible
-
Given the app’s localized language setting, returns a string representing the user’s localization.
Declaration
Swift
public static var preferredLocalLanguageCountryCode: String
-
Returns a
Locale
frompreferredLocalLanguageCountryCode
.Declaration
Swift
public static var nationalizedCurrent = Locale(identifier: preferredLocalLanguageCountryCode)