Values.TranslateDocumentResponseSourceTranslates the input document from the source language to the target language. This synchronous operation supports text, HTML, or Word documents as the input document. TranslateDocument supports translations from English to any supported language, and from any supported language to English. Therefore, specify either the source language code or the target language code as βenβ (English). If you set the Formality parameter, the request will fail if the target language does not support formality. For a list of target languages that support formality, see Setting formality.
type nonrec t = {translatedDocument : TranslatedDocument.t option;The document containing the translated content. The document format matches the source document format.
*)sourceLanguageCode : LanguageCodeString.t option;The language code of the source document.
*)targetLanguageCode : LanguageCodeString.t option;The language code of the translated document.
*)appliedTerminologies : AppliedTerminologyList.t option;The names of the custom terminologies applied to the input text by Amazon Translate to produce the translated text document.
*)appliedSettings : TranslationSettings.t option;}type nonrec error = [ | `InternalServerException of InternalServerException.t| `InvalidRequestException of InvalidRequestException.t| `LimitExceededException of LimitExceededException.t| `ResourceNotFoundException of ResourceNotFoundException.t| `TooManyRequestsException of TooManyRequestsException.t| `UnsupportedLanguagePairException of UnsupportedLanguagePairException.t| `Unknown_operation_error of string * string option ]val error_of_json :
string ->
Yojson.Safe.t ->
[> `InternalServerException of InternalServerException.t
| `InvalidRequestException of InvalidRequestException.t
| `LimitExceededException of LimitExceededException.t
| `ResourceNotFoundException of ResourceNotFoundException.t
| `ServiceUnavailableException of ServiceUnavailableException.t
| `TooManyRequestsException of TooManyRequestsException.t
| `Unknown_operation_error of string * string option
| `UnsupportedLanguagePairException of UnsupportedLanguagePairException.t ]val error_of_xml :
string ->
Awso.Xml.t ->
[> `InternalServerException of InternalServerException.t
| `InvalidRequestException of InvalidRequestException.t
| `LimitExceededException of LimitExceededException.t
| `ResourceNotFoundException of ResourceNotFoundException.t
| `ServiceUnavailableException of ServiceUnavailableException.t
| `TooManyRequestsException of TooManyRequestsException.t
| `Unknown_operation_error of string * string option
| `UnsupportedLanguagePairException of UnsupportedLanguagePairException.t ]val to_value :
t ->
[> `Structure of
(string
* [> `List of
[> `Structure of
(string
* [> `List of
[> `Structure of
(string * [> `String of String_.t ]) list ]
list
| `String of ResourceName.t ])
list ]
list
| `String of LanguageCodeString.t
| `Structure of
(string
* [> `Blob of TranslatedDocumentContent.t | `Enum of string ])
list ])
list ]