---
title: LanguageAvailability
framework: translation
role: symbol
role_heading: Class
path: translation/languageavailability
---

# LanguageAvailability

A check for language support and status.

## Declaration

```swift
class LanguageAvailability
```

## Overview

Overview Use this class to check and see whether the framework supports the language or language pairing you want to offer as a translation. For example, to check if someone’s device supports a translation you can do the following: func translationIsSupported(from source: Locale.Language, to target: Locale.Language) async -> Bool {     let availability = LanguageAvailability()     let status = await availability.status(from: source, to: target)     switch status {     case .installed, .supported:         return true     case .unsupported         return false     } }

## Topics

### Creating a language availability

- [init()](translation/languageavailability/init().md)
- [init(preferredStrategy:)](translation/languageavailability/init(preferredstrategy:).md)

### Configuring language availability

- [preferredStrategy](translation/languageavailability/preferredstrategy.md)

### Getting supported languages

- [supportedLanguages](translation/languageavailability/supportedlanguages.md)

### Checking language availability

- [status(from:to:)](translation/languageavailability/status(from:to:).md)
- [status(for:to:)](translation/languageavailability/status(for:to:).md)
- [LanguageAvailability.Status](translation/languageavailability/status.md)
