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

# Locale.LanguageCode

An alphabetical code associated with a language.

## Declaration

```swift
struct LanguageCode
```

## Topics

### Creating a language code

- [init(_:)](foundation/locale/languagecode-swift.struct/init(_:).md)
- [init(stringLiteral:)](foundation/locale/languagecode-swift.struct/init(stringliteral:).md)

### Examining language code properties

- [identifier](foundation/locale/languagecode-swift.struct/identifier.md)
- [isISOLanguage](foundation/locale/languagecode-swift.struct/isisolanguage.md)

### Using ISO-defined language codes

- [isoLanguageCodes](foundation/locale/languagecode-swift.struct/isolanguagecodes.md)

### Instance Methods

- [identifier(_:)](foundation/locale/languagecode-swift.struct/identifier(_:).md)

### Type Properties

- [ainu](foundation/locale/languagecode-swift.struct/ainu.md)
- [albanian](foundation/locale/languagecode-swift.struct/albanian.md)
- [amharic](foundation/locale/languagecode-swift.struct/amharic.md)
- [apacheWestern](foundation/locale/languagecode-swift.struct/apachewestern.md)
- [arabic](foundation/locale/languagecode-swift.struct/arabic.md)
- [armenian](foundation/locale/languagecode-swift.struct/armenian.md)
- [assamese](foundation/locale/languagecode-swift.struct/assamese.md)
- [assyrian](foundation/locale/languagecode-swift.struct/assyrian.md)
- [azerbaijani](foundation/locale/languagecode-swift.struct/azerbaijani.md)
- [bangla](foundation/locale/languagecode-swift.struct/bangla.md)
- [belarusian](foundation/locale/languagecode-swift.struct/belarusian.md)
- [bodo](foundation/locale/languagecode-swift.struct/bodo.md)
- [bulgarian](foundation/locale/languagecode-swift.struct/bulgarian.md)
- [burmese](foundation/locale/languagecode-swift.struct/burmese.md)
- [cantonese](foundation/locale/languagecode-swift.struct/cantonese.md)
- [catalan](foundation/locale/languagecode-swift.struct/catalan.md)
- [cherokee](foundation/locale/languagecode-swift.struct/cherokee.md)
- [chinese](foundation/locale/languagecode-swift.struct/chinese.md)
- [croatian](foundation/locale/languagecode-swift.struct/croatian.md)
- [czech](foundation/locale/languagecode-swift.struct/czech.md)
- [danish](foundation/locale/languagecode-swift.struct/danish.md)
- [dhivehi](foundation/locale/languagecode-swift.struct/dhivehi.md)
- [dogri](foundation/locale/languagecode-swift.struct/dogri.md)
- [dutch](foundation/locale/languagecode-swift.struct/dutch.md)
- [dzongkha](foundation/locale/languagecode-swift.struct/dzongkha.md)
- [english](foundation/locale/languagecode-swift.struct/english.md)
- [estonian](foundation/locale/languagecode-swift.struct/estonian.md)
- [faroese](foundation/locale/languagecode-swift.struct/faroese.md)
- [finnish](foundation/locale/languagecode-swift.struct/finnish.md)
- [french](foundation/locale/languagecode-swift.struct/french.md)
- [fula](foundation/locale/languagecode-swift.struct/fula.md)
- [georgian](foundation/locale/languagecode-swift.struct/georgian.md)
- [german](foundation/locale/languagecode-swift.struct/german.md)
- [greek](foundation/locale/languagecode-swift.struct/greek.md)
- [gujarati](foundation/locale/languagecode-swift.struct/gujarati.md)
- [hawaiian](foundation/locale/languagecode-swift.struct/hawaiian.md)
- [hebrew](foundation/locale/languagecode-swift.struct/hebrew.md)
- [hindi](foundation/locale/languagecode-swift.struct/hindi.md)
- [hungarian](foundation/locale/languagecode-swift.struct/hungarian.md)
- [icelandic](foundation/locale/languagecode-swift.struct/icelandic.md)
- [igbo](foundation/locale/languagecode-swift.struct/igbo.md)
- [indonesian](foundation/locale/languagecode-swift.struct/indonesian.md)
- [irish](foundation/locale/languagecode-swift.struct/irish.md)
- [italian](foundation/locale/languagecode-swift.struct/italian.md)
- [japanese](foundation/locale/languagecode-swift.struct/japanese.md)
- [kannada](foundation/locale/languagecode-swift.struct/kannada.md)
- [kashmiri](foundation/locale/languagecode-swift.struct/kashmiri.md)
- [kazakh](foundation/locale/languagecode-swift.struct/kazakh.md)
- [khmer](foundation/locale/languagecode-swift.struct/khmer.md)
- [konkani](foundation/locale/languagecode-swift.struct/konkani.md)
- [korean](foundation/locale/languagecode-swift.struct/korean.md)
- [kurdish](foundation/locale/languagecode-swift.struct/kurdish.md)
- [kurdishSorani](foundation/locale/languagecode-swift.struct/kurdishsorani.md)
- [kyrgyz](foundation/locale/languagecode-swift.struct/kyrgyz.md)
- [lao](foundation/locale/languagecode-swift.struct/lao.md)
- [latvian](foundation/locale/languagecode-swift.struct/latvian.md)
- [lithuanian](foundation/locale/languagecode-swift.struct/lithuanian.md)
- [māori](foundation/locale/languagecode-swift.struct/m_ori.md)
- [macedonian](foundation/locale/languagecode-swift.struct/macedonian.md)
- [maithili](foundation/locale/languagecode-swift.struct/maithili.md)
- [malay](foundation/locale/languagecode-swift.struct/malay.md)
- [malayalam](foundation/locale/languagecode-swift.struct/malayalam.md)
- [maltese](foundation/locale/languagecode-swift.struct/maltese.md)
- [manipuri](foundation/locale/languagecode-swift.struct/manipuri.md)
- [marathi](foundation/locale/languagecode-swift.struct/marathi.md)
- [mongolian](foundation/locale/languagecode-swift.struct/mongolian.md)
- [multiple](foundation/locale/languagecode-swift.struct/multiple.md)
- [navajo](foundation/locale/languagecode-swift.struct/navajo.md)
- [nepali](foundation/locale/languagecode-swift.struct/nepali.md)
- [norwegian](foundation/locale/languagecode-swift.struct/norwegian.md)
- [norwegianBokmål](foundation/locale/languagecode-swift.struct/norwegianbokm_l.md)
- [norwegianNynorsk](foundation/locale/languagecode-swift.struct/norwegiannynorsk.md)
- [odia](foundation/locale/languagecode-swift.struct/odia.md)
- [pashto](foundation/locale/languagecode-swift.struct/pashto.md)
- [persian](foundation/locale/languagecode-swift.struct/persian.md)
- [polish](foundation/locale/languagecode-swift.struct/polish.md)
- [portuguese](foundation/locale/languagecode-swift.struct/portuguese.md)
- [punjabi](foundation/locale/languagecode-swift.struct/punjabi.md)
- [rohingya](foundation/locale/languagecode-swift.struct/rohingya.md)
- [romanian](foundation/locale/languagecode-swift.struct/romanian.md)
- [russian](foundation/locale/languagecode-swift.struct/russian.md)
- [samoan](foundation/locale/languagecode-swift.struct/samoan.md)
- [sanskrit](foundation/locale/languagecode-swift.struct/sanskrit.md)
- [santali](foundation/locale/languagecode-swift.struct/santali.md)
- [serbian](foundation/locale/languagecode-swift.struct/serbian.md)
- [sindhi](foundation/locale/languagecode-swift.struct/sindhi.md)
- [sinhala](foundation/locale/languagecode-swift.struct/sinhala.md)
- [slovak](foundation/locale/languagecode-swift.struct/slovak.md)
- [slovenian](foundation/locale/languagecode-swift.struct/slovenian.md)
- [spanish](foundation/locale/languagecode-swift.struct/spanish.md)
- [swahili](foundation/locale/languagecode-swift.struct/swahili.md)
- [swedish](foundation/locale/languagecode-swift.struct/swedish.md)
- [tagalog](foundation/locale/languagecode-swift.struct/tagalog.md)
- [tajik](foundation/locale/languagecode-swift.struct/tajik.md)
- [tamil](foundation/locale/languagecode-swift.struct/tamil.md)
- [telugu](foundation/locale/languagecode-swift.struct/telugu.md)
- [thai](foundation/locale/languagecode-swift.struct/thai.md)
- [tibetan](foundation/locale/languagecode-swift.struct/tibetan.md)
- [tongan](foundation/locale/languagecode-swift.struct/tongan.md)
- [turkish](foundation/locale/languagecode-swift.struct/turkish.md)
- [turkmen](foundation/locale/languagecode-swift.struct/turkmen.md)
- [ukrainian](foundation/locale/languagecode-swift.struct/ukrainian.md)
- [unavailable](foundation/locale/languagecode-swift.struct/unavailable.md)
- [uncoded](foundation/locale/languagecode-swift.struct/uncoded.md)
- [unidentified](foundation/locale/languagecode-swift.struct/unidentified.md)
- [urdu](foundation/locale/languagecode-swift.struct/urdu.md)
- [uyghur](foundation/locale/languagecode-swift.struct/uyghur.md)
- [uzbek](foundation/locale/languagecode-swift.struct/uzbek.md)
- [vietnamese](foundation/locale/languagecode-swift.struct/vietnamese.md)
- [welsh](foundation/locale/languagecode-swift.struct/welsh.md)
- [yiddish](foundation/locale/languagecode-swift.struct/yiddish.md)

### Enumerations

- [Locale.LanguageCode.IdentifierType](foundation/locale/languagecode-swift.struct/identifiertype.md)

## Relationships

### Conforms To

- [Copyable](swift/copyable.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [ExpressibleByExtendedGraphemeClusterLiteral](swift/expressiblebyextendedgraphemeclusterliteral.md)
- [ExpressibleByStringLiteral](swift/expressiblebystringliteral.md)
- [ExpressibleByUnicodeScalarLiteral](swift/expressiblebyunicodescalarliteral.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Examining language properties

- [languageCode](foundation/locale/language-swift.struct/languagecode.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)
