Skip to content

Commit 24b53dc

Browse files
Merge pull request #2710 from laujan/patch-1
Update use-rest-api-programmatically.md
2 parents 4ac18ac + a922720 commit 24b53dc

File tree

1 file changed

+6
-30
lines changed

1 file changed

+6
-30
lines changed

articles/ai-services/translator/document-translation/how-to-guides/use-rest-api-programmatically.md

Lines changed: 6 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ author: laujan
66
manager: nitinme
77
ms.service: azure-ai-translator
88
ms.topic: quickstart
9-
ms.date: 11/19/2024
9+
ms.date: 02/03/2025
1010
ms.author: lajanuar
1111
recommendations: false
1212
ms.devlang: csharp
1313
# ms.devlang: csharp, golang, java, javascript, python
14-
ms.custom: mode-other, build-2023, devx-track-extended-java, devx-track-python, ignite-2024
14+
ms.custom: mode-other, devx-track-extended-java, devx-track-python, ignite-2024
1515
---
1616

1717
# Use REST APIs programmatically
@@ -47,7 +47,7 @@ To get started, you need:
4747
1. **Name**. Enter the name you chose for your resource. The name you choose must be unique within Azure.
4848

4949
> [!NOTE]
50-
> Document Translation requires a custom domain endpoint. The value that you enter in the Name field will be the custom domain name parameter for your endpoint.
50+
> Document Translation requires a custom domain endpoint. The value that you enter in the Name field is the custom domain name parameter for your endpoint.
5151
5252
1. **Pricing tier**. Document Translation isn't supported in the free tier. To try the service, select Standard S1.
5353

@@ -90,7 +90,7 @@ You need to [**create containers**](/azure/storage/blobs/storage-quickstart-blo
9090
* **Target container**. This container is where your translated files are stored (required).
9191

9292
> [!NOTE]
93-
> Document Translation supports glossaries as blobs in target containers (not separate glossary containers). If want to include a custom glossary, add it to the target container and include the` glossaryUrl` with the request. If the translation language pair is not present in the glossary, it will not be applied. *See* [Translate documents using a custom glossary](#translate-documents-using-a-custom-glossary)
93+
> Document Translation supports glossaries as blobs in target containers (not separate glossary containers). If you want to include a custom glossary, add it to the target container and include the` glossaryUrl` with the request. If the translation language pair isn't present in the glossary, the glossary isn't applied. *See* [Translate documents using a custom glossary](#translate-documents-using-a-custom-glossary)
9494
9595
### **Create SAS access tokens for Document Translation**
9696

@@ -131,7 +131,7 @@ The following headers are included with each Document Translation API request:
131131
* The `targetUrl` for each target language must be unique.
132132

133133
>[!NOTE]
134-
> If a file with the same name already exists in the destination, the job will fail.
134+
> If a file with the same name already exists in the destination, the job fails.
135135
136136
<!-- markdownlint-disable MD024 -->
137137
### Translate all documents in a container
@@ -210,30 +210,6 @@ The following headers are included with each Document Translation API request:
210210
}
211211
```
212212

213-
### 🆕 Translate text embedded in images within documents
214-
215-
> [!Note]
216-
>
217-
> * This feature is optional and must be enabled for each translation request.
218-
> * Enabling this feature will incur additional costs based on usage. For more information, *see* [Azure AI Vision pricing](https://azure.microsoft.com/pricing/details/cognitive-services/computer-vision/)
219-
> * This feature is currently available only with the Batch Document Translation API.
220-
> * The Supported file format is `.docx` only.
221-
> * An Azure AI Services resource (not the standalone Translator resource) is required to use this feature.
222-
223-
### Request configuration
224-
225-
* Use the optional `translateTextWithinImage` parameter in the `options` field
226-
227-
* Data type: Boolean (`true` or `false`)
228-
* Default Boolean setting is `false`. Set the option to `true` to enable image text translation.
229-
230-
* **Response Details**. When the feature is enabled, added image processing information is included with the response:
231-
232-
* **`totalImageScansSucceeded`**. The number of successfully translated image scans.
233-
234-
* **`totalImageScansFailed`**. The number of image scans that failed processing.
235-
236-
237213
## Use code to submit Document Translation requests
238214

239215
### Set up your coding Platform
@@ -330,7 +306,7 @@ gradle init --type basic
330306
331307
> [!IMPORTANT]
332308
>
333-
> For the code samples, you'll hard-code your Shared Access Signature (SAS) URL where indicated. Remember to remove the SAS URL from your code when you're done, and never post it publicly. For production, use a secure way of storing and accessing your credentials like [Azure Managed Identity](create-use-managed-identities.md). For more information, _see_ Azure Storage [security](/azure/storage/common/authorize-data-access).
309+
> For the code samples, hard-code your Shared Access Signature (SAS) URL where indicated. Remember to remove the SAS URL from your code when you're done, and never post it publicly. For production, use a secure way of storing and accessing your credentials like [Azure Managed Identity](create-use-managed-identities.md). For more information, _see_ Azure Storage [security](/azure/storage/common/authorize-data-access).
334310

335311
> You might need to update the following fields, depending upon the operation:
336312
>>>

0 commit comments

Comments
 (0)