---
title: attributedSourceText
framework: translation
role: symbol
role_heading: Instance Property
path: translation/translationsession/response/attributedsourcetext
---

# attributedSourceText

The original translated text, including style formatting and links.

## Declaration

```swift
let attributedSourceText: AttributedString?
```

## Discussion

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.

## See Also

### Getting translation results

- [sourceText](translation/translationsession/response/sourcetext.md)
- [targetText](translation/translationsession/response/targettext.md)
- [attributedTargetText](translation/translationsession/response/attributedtargettext.md)
