<!--
{
  "availability" : [
    "macOS: 10.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSSpellChecker/availableLanguages",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSSpellChecker(py)availableLanguages"
  },
  "title" : "availableLanguages"
}
-->

# availableLanguages

Provides a list of all available languages.

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

## 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

If [`automaticallyIdentifiesLanguages`](/documentation/AppKit/NSSpellChecker/automaticallyIdentifiesLanguages) is <doc://com.apple.documentation/documentation/Swift/true>, then text checking will automatically use this method as appropriate; otherwise, it will use the language set by [`setLanguage(_:)`](/documentation/AppKit/NSSpellChecker/setLanguage(_:)).

The older [`checkSpelling(of:startingAt:language:wrap:inSpellDocumentWithTag:wordCount:)`](/documentation/AppKit/NSSpellChecker/checkSpelling(of:startingAt:language:wrap:inSpellDocumentWithTag:wordCount:)) and [`checkGrammar(of:startingAt:language:wrap:inSpellDocumentWithTag:details:)`](/documentation/AppKit/NSSpellChecker/checkGrammar(of:startingAt:language:wrap:inSpellDocumentWithTag:details:)). methods will use the language set by [`setLanguage(_:)`](/documentation/AppKit/NSSpellChecker/setLanguage(_:)), if they are called with a `nil` language argument.

---

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)