Contents

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) -> String

Parameters

  • 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.

See Also

Converting Between Identifiers