init(languageCode:script:languageRegion:)
Creates a locale components instance with the specified language code, script, and region identifier.
Declaration
init(languageCode: Locale.LanguageCode? = nil, script: Locale.Script? = nil, languageRegion: Locale.Region? = nil)Parameters
- languageCode:
A language code, typically created from a two- or three-letter language code specified by ISO 639.
- script:
The script to use for the new locale components instance.
- languageRegion:
A language region, typically created from a two-letter BCP 47 region subtag like
US.