canonicalLanguageIdentifier(from:)
Returns a canonical language identifier by mapping an arbitrary locale identification string to the canonical identifier.
Declaration
class func canonicalLanguageIdentifier(from string: String) -> StringParameters
- string:
A string representation of an arbitrary locale identifier.
Return Value
A string that represents the canonical language identifier for the specified arbitrary locale identifier.