---
title: "init(languageCode:script:region:)"
framework: foundation
role: symbol
role_heading: Initializer
path: "foundation/locale/language-swift.struct/components/init(languagecode:script:region:)"
---

# init(languageCode:script:region:)

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

## Declaration

```swift
init(languageCode: Locale.LanguageCode? = nil, script: Locale.Script? = nil, region: Locale.Region? = nil)
```

## Parameters

- `languageCode`: The language code to use for the new components instance.
- `script`: The script to use for the new components instance.
- `region`: The region to use for the new components instance.

## See Also

### Creating a language components instance

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