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