---
title: "init(identifier:)"
framework: foundation
role: symbol
role_heading: Initializer
path: "foundation/locale/components/init(identifier:)"
---

# init(identifier:)

Creates a locale components instance with the specified identifier.

## Declaration

```swift
init(identifier: String)
```

## Parameters

- `identifier`: A BCP-47 language identifier such as en-u-nu-thai-ca-buddhist or an ICU-style identifier such as en@calendar=buddhist;numbers=thai.

## See Also

### Creating a locale components instance

- [init(languageCode:script:languageRegion:)](foundation/locale/components/init(languagecode:script:languageregion:).md)
- [init(locale:)](foundation/locale/components/init(locale:).md)
