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
enfor English. You can also use a code of your own choice for a custom language.