---
title: attributedTargetText
framework: translation
role: symbol
role_heading: Instance Property
path: translation/translationsession/response/attributedtargettext
---

# attributedTargetText

The translated formatted text.

## Declaration

```swift
let attributedTargetText: AttributedString?
```

## Discussion

Discussion This property contains the translated text with formatting and defined attributes preserved and aligned from the source text. The framework makes a best effort to preserve attributes like accessibility instructions and time ranges, aligning them to the corresponding words in the target language. note: The framework preserves but doesn’t modify attributes. To use the correct language after translation, update any attributes that need to reflect the target language, such as the language modifier for VoiceOver. For examples of translating attributed source text, see attributedSourceText.

## See Also

### Getting translation results

- [sourceText](translation/translationsession/response/sourcetext.md)
- [targetText](translation/translationsession/response/targettext.md)
- [attributedSourceText](translation/translationsession/response/attributedsourcetext.md)
