Contents

init(_:)

Creates a language code from an identifier.

Declaration

init(_ identifier: String)

Parameters

  • identifier:

    A two-letter ISO 639-1 or three-letter ISO 639-2 code, such as en for English. You can also use a code of your own choice for a custom language.