Contents

init(stringLiteral:)

Creates a language code from an identifier as a string literal.

Declaration

init(stringLiteral value: String)

Parameters

  • value:

    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.

See Also

Creating a language code