<!--
{
  "availability" : [
    "iOS: 26.4.0 -",
    "iPadOS: 26.4.0 -",
    "macCatalyst: 26.4.0 -",
    "macOS: 26.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Translation",
  "identifier" : "/documentation/Translation/TranslationSession/Response/attributedSourceText",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Translation"
    ],
    "preciseIdentifier" : "s:11Translation0A7SessionC8ResponseV20attributedSourceText10Foundation16AttributedStringVSgvp"
  },
  "title" : "attributedSourceText"
}
-->

# attributedSourceText

The original translated text, including style formatting and links.

```
let attributedSourceText: AttributedString?
```

## Discussion

When translating attributed strings using any translation method, the framework makes a best
effort to preserve both visual formatting and defined attributes. This enables use cases like
timestamp synchronization for captions or lyrics. For examples of translating text with preserved
attributes, see [`attributedSourceText`](/documentation/Translation/TranslationSession/Request/attributedSourceText).

---

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)