Values.TranslateTextResponseSourceTranslates input text from the source language to the target language. For a list of available languages and language codes, see Supported languages.
type nonrec t = {translatedText : TranslatedTextString.t option;The translated text.
*)sourceLanguageCode : LanguageCodeString.t option;The language code for the language of the source text.
*)targetLanguageCode : LanguageCodeString.t option;The language code for the language of the target text.
*)appliedTerminologies : AppliedTerminologyList.t option;The names of the custom terminologies applied to the input text by Amazon Translate for the translated text response.
*)appliedSettings : TranslationSettings.t option;Optional settings that modify the translation output.
*)}type nonrec error = [ | `DetectedLanguageLowConfidenceException of
DetectedLanguageLowConfidenceException.t| `InternalServerException of InternalServerException.t| `InvalidRequestException of InvalidRequestException.t| `ResourceNotFoundException of ResourceNotFoundException.t| `TextSizeLimitExceededException of TextSizeLimitExceededException.t| `TooManyRequestsException of TooManyRequestsException.t| `UnsupportedLanguagePairException of UnsupportedLanguagePairException.t| `Unknown_operation_error of string * string option ]val error_of_json :
string ->
Yojson.Safe.t ->
[> `DetectedLanguageLowConfidenceException of
DetectedLanguageLowConfidenceException.t
| `InternalServerException of InternalServerException.t
| `InvalidRequestException of InvalidRequestException.t
| `ResourceNotFoundException of ResourceNotFoundException.t
| `ServiceUnavailableException of ServiceUnavailableException.t
| `TextSizeLimitExceededException of TextSizeLimitExceededException.t
| `TooManyRequestsException of TooManyRequestsException.t
| `Unknown_operation_error of string * string option
| `UnsupportedLanguagePairException of UnsupportedLanguagePairException.t ]val error_of_xml :
string ->
Awso.Xml.t ->
[> `DetectedLanguageLowConfidenceException of
DetectedLanguageLowConfidenceException.t
| `InternalServerException of InternalServerException.t
| `InvalidRequestException of InvalidRequestException.t
| `ResourceNotFoundException of ResourceNotFoundException.t
| `ServiceUnavailableException of ServiceUnavailableException.t
| `TextSizeLimitExceededException of TextSizeLimitExceededException.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 TranslatedTextString.t
| `Structure of (string * [> `Enum of string ]) list ])
list ]