---
title: "init(languageCode:script:languageRegion:)"
framework: foundation
role: symbol
role_heading: Initializer
path: "foundation/locale/components/init(languagecode:script:languageregion:)"
---

# init(languageCode:script:languageRegion:)

Creates a locale components instance with the specified language code, script, and region identifier.

## Declaration

```swift
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.

## See Also

### Creating a locale components instance

- [init(identifier:)](foundation/locale/components/init(identifier:).md)
- [init(locale:)](foundation/locale/components/init(locale:).md)
