---
title: sourceLanguage
framework: translation
role: symbol
role_heading: Instance Property
path: translation/translationsession/sourcelanguage
---

# sourceLanguage

The input language to translate from.

## Declaration

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

## Discussion

Discussion If this value is set to nil, the session tries to identify the source language automatically. If it can’t identify the language, it prompts the person to choose the source language to use for the translation. note: This value doesn’t update after translation. To see what source language the session uses for a particular translation, check the response sourceLanguage.

## See Also

### Getting the language configuration

- [targetLanguage](translation/translationsession/targetlanguage.md)
