---
title: availableLanguages
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsspellchecker/availablelanguages
---

# availableLanguages

Provides a list of all available languages.

## Declaration

```swift
var availableLanguages: [String] { get }
```

## Return Value

Return Value An array containing all the available spell checking languages. The languages are ordered in the user’s preferred order as set in the system preferences.

## Discussion

Discussion If automaticallyIdentifiesLanguages is true, then text checking will automatically use this method as appropriate; otherwise, it will use the language set by setLanguage(_:). The older checkSpelling(of:startingAt:language:wrap:inSpellDocumentWithTag:wordCount:) and checkGrammar(of:startingAt:language:wrap:inSpellDocumentWithTag:details:). methods will use the language set by setLanguage(_:), if they are called with a nil language argument.

## See Also

### Configuring Spell Checkers Languages

- [userPreferredLanguages](appkit/nsspellchecker/userpreferredlanguages.md)
- [automaticallyIdentifiesLanguages](appkit/nsspellchecker/automaticallyidentifieslanguages.md)
- [language()](appkit/nsspellchecker/language().md)
- [setLanguage(_:)](appkit/nsspellchecker/setlanguage(_:).md)
