<!--
{
  "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/LanguageCode-swift.struct/IdentifierType",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:10Foundation6LocaleV12LanguageCodeV14IdentifierTypeO"
  },
  "title" : "Locale.LanguageCode.IdentifierType"
}
-->

# Locale.LanguageCode.IdentifierType

Types of ISO 639 language code.

```
enum IdentifierType
```

## Topics

### Enumeration Cases

[`case alpha2`](/documentation/Foundation/Locale/LanguageCode-swift.struct/IdentifierType/alpha2)

Two-letter alpha-2 code, e.g. “en” for English

[`case alpha3`](/documentation/Foundation/Locale/LanguageCode-swift.struct/IdentifierType/alpha3)

Three-letter alpha-3 code, e.g. “eng” for English

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Hashable`](/documentation/Swift/Hashable)

[`Sendable`](/documentation/Swift/Sendable)

---

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)