---
title: TranslationSession.Response
framework: translation
role: symbol
role_heading: Structure
path: translation/translationsession/response
---

# TranslationSession.Response

The response to a translation request.

## Declaration

```swift
struct Response
```

## Overview

Overview You get a single response structure after you translate a string, or when you call one of the batch translation methods passing in an array of translation requests. When the translation completes, a response instance returns with the translation result along with properties the framework used to perform the translation.

## Topics

### Initializing a response

- [init(sourceLanguage:targetLanguage:sourceText:targetText:clientIdentifier:)](translation/translationsession/response/init(sourcelanguage:targetlanguage:sourcetext:targettext:clientidentifier:).md)
- [init(sourceLanguage:targetLanguage:sourceAttributedText:targetAttributedText:clientIdentifier:)](translation/translationsession/response/init(sourcelanguage:targetlanguage:sourceattributedtext:targetattributedtext:clientidentifier:).md)

### Getting translation results

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

### Getting translation details

- [sourceLanguage](translation/translationsession/response/sourcelanguage.md)
- [targetLanguage](translation/translationsession/response/targetlanguage.md)
- [clientIdentifier](translation/translationsession/response/clientidentifier.md)

## Relationships

### Conforms To

- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Translating the text

- [translate(_:)](translation/translationsession/translate(_:)-59zi2.md)
- [translate(_:)](translation/translationsession/translate(_:)-4m20l.md)
- [translate(batch:)](translation/translationsession/translate(batch:).md)
- [translations(from:)](translation/translationsession/translations(from:).md)
- [TranslationSession.Request](translation/translationsession/request.md)
- [TranslationSession.BatchResponse](translation/translationsession/batchresponse.md)
