Contents

init(languageCode:script:region:)

Creates a language from a given language code, script, and region.

Declaration

init(languageCode: Locale.LanguageCode? = nil, script: Locale.Script? = nil, region: 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.

  • region:

    The region to use for the new components instance.

See Also

Creating a language