What is Azure Translator document translation?
Document translation is a cloud-based machine translation feature of Azure Translator in Foundry Tools. Translate multiple and complex documents across all supported languages and dialects while preserving original document structure and data format. The Document translation API supports two translation processes:- Asynchronous batch translation supports the processing of multiple documents and large files. The batch translation process requires an Azure Blob storage account with storage containers for your source and translated documents.
- Synchronous single file supports the processing of single file translations. The file translation process doesn’t require an Azure Blob storage account. The final response contains the translated document and is returned directly to the calling client.
Prerequisites
Asynchronous batch translation prerequisites
Before you start, you need:- An active Azure subscription.
- A Translator resource. For resource creation and endpoint/key retrieval steps, see Use Document translation APIs programmatically.
- An Azure Blob Storage account with source and target containers. For setup guidance, see Create Azure Blob Storage containers.
- A way to authorize access to your storage URLs:
Synchronous translation prerequisites
Before you start, you need:- An active Azure subscription.
- A Translator resource with a custom domain endpoint. For setup and endpoint/key retrieval, see Use Document translation APIs programmatically.
Key features
- Asynchronous (batch)
- Synchronous
How document translation works
Document translation supports two workflows. Choose the approach that matches your scenario.Asynchronous (batch)
- Upload source documents to your source container.
- Submit a batch translation request.
- Monitor job and document status.
- Download translated documents from your target container.
Synchronous
- Send a request that includes one document (and an optional glossary).
- Receive the translated document in the response.
Development options
Add document translation to your projects and applications using the following development options.Foundry portal currently supports synchronous (single-file) document translation only. Use the REST API or client libraries for asynchronous batch document translation.
- Asynchronous (batch)
- Synchronous
Use asynchronous workflows to translate multiple documents and large files.
Supported document and glossary formats
The following tables list the document and glossary file formats supported by each translation method.- Asynchronous (batch)
- Synchronous
Batch document supported formats
The Get supported document formats method returns a list of document formats supported by the Document translation service. The list includes common file extensions and content types.Batch Legacy file types
Source file types are preserved during the document translation with the following exceptions:Batch glossary supported formats
Document translation supports the following glossary file types:Document translation request limits
For detailed information about Translator request limits, see Document translation request limits.Document translation data residency
Document translation data residency depends on the Azure region where your Translator resource was created: ✔️ Feature: Document translation✔️ Service endpoint: Custom domain:
https://<your-resource-name>.cognitiveservices.azure.com
Troubleshooting
Use the following checks to diagnose common issues.Batch translation
- If translated files don’t appear in the target container, check job status using Get status for a specific translation job and document status using Get status for a specific document.
- If the service can’t read from or write to your storage containers, confirm storage authorization:
- If you use SAS tokens, see Create shared access signature (SAS) tokens for storage containers and blobs.
- If you use managed identities, see Create and use managed identities.
- If a job fails due to unsupported inputs, confirm the format using Get supported document formats.
Synchronous translation
- If the request fails due to invalid parameters or unsupported file types, review the required parameters and supported formats in Synchronous document translation.
- If you hit rate limits, see Document translation request limits.