---
title: targetLanguage
framework: translation
role: symbol
role_heading: Instance Property
path: translation/translationsession/targetlanguage
---

# targetLanguage

The output language to translate into.

## Declaration

```swift
final let targetLanguage: Locale.Language?
```

## Discussion

Discussion If this value is set to nil, the session chooses an optimal language to translate into based on the sourceLanguage and the person’s preferredLanguages. note: This value doesn’t update after translation. To see what target language the session uses for a particular translation, check the response targetLanguage.

## See Also

### Getting the language configuration

- [sourceLanguage](translation/translationsession/sourcelanguage.md)
