<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 15.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Translation",
  "identifier" : "/documentation/Translation/TranslationSession/Configuration/source",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Translation"
    ],
    "preciseIdentifier" : "s:11Translation0A7SessionC13ConfigurationV6source10Foundation6LocaleV8LanguageVSgvp"
  },
  "title" : "source"
}
-->

# source

The language to translate content from.

```
var source: Locale.Language?
```

## Discussion

If left to its default value of `nil`, the session tries to identify the
source language automatically, and prompts the person to choose a source language if it’s unclear.
Changing this value cancels the previous task and creates a new one.

---

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)