---
title: isoLanguageCodes
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/nslocale/isolanguagecodes
---

# isoLanguageCodes

The list of known language codes.

## Declaration

```swift
class var isoLanguageCodes: [String] { get }
```

## Discussion

Discussion A language code is a short string that represent a particular language. All languages have a three-character ISO 639-2 string, while some languages also have a two-character ISO 639-1 string. See ISO 639.2 Codes for the Representation of Names of Languages for the complete list of standardized language codes. The array provided by this property contains a list of codes for all the languages the system knows about, designated by the ISO 639-1 code if available, or the ISO 639-2 code if not. Use the method localizedString(forLanguageCode:) to obtain a human readable string for any of the codes in the list. For more information about language localization in your app, see Language and Locale IDs. Not all language codes have supporting locale data in the system.

## See Also

### Getting Known Identifiers and Codes

- [availableLocaleIdentifiers](foundation/nslocale/availablelocaleidentifiers.md)
- [isoCountryCodes](foundation/nslocale/isocountrycodes.md)
- [isoCurrencyCodes](foundation/nslocale/isocurrencycodes.md)
- [commonISOCurrencyCodes](foundation/nslocale/commonisocurrencycodes.md)
