Module translate_documents_api

Source

Enums§

DownloadDocumentError
struct for typed errors of method download_document
GetDocumentStatusError
struct for typed errors of method get_document_status
TranslateDocumentError
struct for typed errors of method translate_document

Functions§

download_document
Once the status of the document translation process is done, the result can be downloaded. For privacy reasons the translated document is automatically removed from the server once it was downloaded and cannot be downloaded again.
get_document_status
Retrieve the current status of a document translation process. If the translation is still in progress, the estimated time remaining is also included in the response.
translate_document
This call uploads a document and queues it for translation. The call returns once the upload is complete, returning a document ID and key which can be used to query the translation status and to download the translated document once translation is complete. Because the request includes a file upload, it must be an HTTP POST request with content type multipart/form-data. Please be aware that the uploaded document is automatically removed from the server once the translated document has been downloaded. You have to upload the document again in order to restart the translation. The maximum upload limit for documents is available here and may vary based on API plan and document type. You may specify the glossary to use for the document translation using the glossary_id parameter. Important: This requires the source_lang parameter to be set and the language pair of the glossary has to match the language pair of the request.