<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/Locale/init(languageCode:script:languageRegion:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:10Foundation6LocaleV12languageCode6script0C6RegionA2C08LanguageD0VSg_AC6ScriptVSgAC0F0VSgtcfc"
  },
  "title" : "init(languageCode:script:languageRegion:)"
}
-->

# init(languageCode:script:languageRegion:)

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

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)