---
title: Locale.Language
framework: foundation
role: symbol
role_heading: Structure
path: foundation/locale/language-swift.struct
---

# Locale.Language

A type that represents a language, as used in a locale.

## Declaration

```swift
struct Language
```

## Topics

### Creating a language

- [init(identifier:)](foundation/locale/language-swift.struct/init(identifier:).md)
- [init(components:)](foundation/locale/language-swift.struct/init(components:).md)
- [Locale.Language.Components](foundation/locale/language-swift.struct/components.md)
- [init(languageCode:script:region:)](foundation/locale/language-swift.struct/init(languagecode:script:region:).md)

### Examining language properties

- [languageCode](foundation/locale/language-swift.struct/languagecode.md)
- [Locale.LanguageCode](foundation/locale/languagecode-swift.struct.md)
- [region](foundation/locale/language-swift.struct/region.md)
- [Locale.Region](foundation/locale/region-swift.struct.md)
- [script](foundation/locale/language-swift.struct/script.md)
- [Locale.Script](foundation/locale/script.md)
- [characterDirection](foundation/locale/language-swift.struct/characterdirection.md)
- [Locale.LanguageDirection](foundation/locale/languagedirection.md)

### Examining language relationships

- [parent](foundation/locale/language-swift.struct/parent.md)
- [hasCommonParent(with:)](foundation/locale/language-swift.struct/hascommonparent(with:).md)
- [isEquivalent(to:)](foundation/locale/language-swift.struct/isequivalent(to:).md)

### Using system languages

- [systemLanguages](foundation/locale/language-swift.struct/systemlanguages.md)

### Instance Properties

- [lineLayoutDirection](foundation/locale/language-swift.struct/linelayoutdirection.md)
- [maximalIdentifier](foundation/locale/language-swift.struct/maximalidentifier.md)
- [minimalIdentifier](foundation/locale/language-swift.struct/minimalidentifier.md)

## Relationships

### Conforms To

- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Getting language components

- [language](foundation/locale/language-swift.property.md)
