Skip to content

Commit 63e48c9

Browse files
committed
container data residency
1 parent 3e9ee91 commit 63e48c9

File tree

5 files changed

+8
-17
lines changed

5 files changed

+8
-17
lines changed

articles/ai-services/translator/containers/translate-text-parameters.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ If an error occurs, the request returns a JSON error response. The error code is
130130
> * Each sample runs on the `localhost` that you specified with the `docker run` command.
131131
> * While your container is running, `localhost` points to the container itself.
132132
> * You don't have to use `localhost:5000`. You can use any port that is not already in use in your host environment.
133-
> To specify a port, use the `-p` option.
133+
134134

135135
### Translate a single input
136136

@@ -279,7 +279,7 @@ namespace TranslateContainer
279279
Translating multiple strings at once is simply a matter of specifying an array of strings in the request body.
280280

281281
```bash
282-
curl -X POST "http://localhost:{port}/translate?api-version=3.0&from=en&to=zh-Hans" -H "Ocp-Apim-Subscription-Key: <client-secret>" -H "Content-Type: application/json; charset=UTF-8" -d "[{'Text':'Hello, what is your name?'}, {'Text':'I am fine, thank you.'}]"
282+
curl -X POST "http://localhost:5000/translate?api-version=3.0&from=en&to=zh-Hans" -H "Ocp-Apim-Subscription-Key: <client-secret>" -H "Content-Type: application/json; charset=UTF-8" -d "[{'Text':'Hello, what is your name?'}, {'Text':'I am fine, thank you.'}]"
283283
```
284284

285285
The response contains the translation of all pieces of text in the exact same order as in the request.
@@ -305,7 +305,7 @@ The response body is:
305305
This example shows how to translate the same input to several languages in one request.
306306

307307
```bash
308-
curl -X POST "http://localhost:{port}/translate?api-version=3.0&from=en&to=zh-Hans&to=de" -H "Ocp-Apim-Subscription-Key: <client-secret>" -H "Content-Type: application/json; charset=UTF-8" -d "[{'Text':'Hello, what is your name?'}]"
308+
curl -X POST "http://localhost:5000/translate?api-version=3.0&from=en&to=zh-Hans&to=de" -H "Ocp-Apim-Subscription-Key: <client-secret>" -H "Content-Type: application/json; charset=UTF-8" -d "[{'Text':'Hello, what is your name?'}]"
309309
```
310310

311311
The response body is:
@@ -333,7 +333,7 @@ It's common to translate content that includes markup such as content from an HT
333333
Here's a sample request to illustrate.
334334

335335
```bash
336-
curl -X POST "http://localhost:{port}/translate?api-version=3.0&from=en&to=zh-Hans&textType=html" -H "Ocp-Apim-Subscription-Key: <client-secret>" -H "Content-Type: application/json; charset=UTF-8" -d "[{'Text':'<div class=\"notranslate\">This will not be translated.</div><div>This will be translated.</div>'}]"
336+
curl -X POST "http://localhost:5000/translate?api-version=3.0&from=en&to=zh-Hans&textType=html" -H "Ocp-Apim-Subscription-Key: <client-secret>" -H "Content-Type: application/json; charset=UTF-8" -d "[{'Text':'<div class=\"notranslate\">This will not be translated.</div><div>This will be translated.</div>'}]"
337337
```
338338

339339
The response is:
@@ -361,7 +361,7 @@ The markup to supply uses the following syntax.
361361
For example, consider the English sentence "The word wordomatic is a dictionary entry." To preserve the word _wordomatic_ in the translation, send the request:
362362

363363
```bash
364-
curl -X POST "http://localhost:{port}/translate?api-version=3.0&from=en&to=de" -H "Ocp-Apim-Subscription-Key: <client-secret>" -H "Content-Type: application/json; charset=UTF-8" -d "[{'Text':'The word <mstrans:dictionary translation=\"wordomatic\">word or phrase</mstrans:dictionary> is a dictionary entry.'}]"
364+
curl -X POST "http://localhost:5000/translate?api-version=3.0&from=en&to=de" -H "Ocp-Apim-Subscription-Key: <client-secret>" -H "Content-Type: application/json; charset=UTF-8" -d "[{'Text':'The word <mstrans:dictionary translation=\"wordomatic\">word or phrase</mstrans:dictionary> is a dictionary entry.'}]"
365365
```
366366

367367
The result is:

articles/ai-services/translator/containers/transliterate-text-parameters.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Convert characters or letters of a source language to the corresponding characte
2121
`POST` request:
2222

2323
```HTTP
24-
POST http://localhost:5000/transliterate?api-version=3.0&language={language}&fromScript={fromScript}&toScript={toScript}
24+
POST http://localhost:{port}/transliterate?api-version=3.0&language={language}&fromScript={fromScript}&toScript={toScript}
2525
2626
```
2727

@@ -107,7 +107,6 @@ The following limitations apply:
107107
> * Each sample runs on the `localhost` that you specified with the `docker run` command.
108108
> * While your container is running, `localhost` points to the container itself.
109109
> * You don't have to use `localhost:5000`. You can use any port that is not already in use in your host environment.
110-
> To specify a port, use the `-p` option.
111110
112111
### Transliterate with REST API
113112

articles/ai-services/translator/document-translation/overview.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,6 @@ Document Translation data residency depends on the Azure region where your Trans
146146
✔️ Feature: **Document Translation**</br>
147147
✔️ Service endpoint: **Custom:** &#8198;&#8198;&#8198; **`<name-of-your-resource.cognitiveservices.azure.com/translator/text/batch/v1.1`**
148148

149-
* Translator resources **created** in any region in Europe (except Switzerland) are **processed** at data center in France Central and West Europe.
150-
* Translator resources **created** in any region in Switzerland are **processed** at data center in Switzerland North and Switzerland West.
151-
* Translator resources **created** in any region in Asia Pacific or Australia are **processed** at data center in Japan East and Southeast Asia.
152-
* Translator resource **created** in all other regions including Global, North America, and South America are **processed** at data center in East US 2 and West US 2.
153-
154149
|Resource region| Request processing data center |
155150
|----------------------------------|-----------------------|
156151
|**Any region within Europe (except Switzerland)**| Europe: France Central &bull; West Europe|

articles/ai-services/translator/reference/v3-0-reference.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ Requests to Translator are, in most cases, handled by the datacenter that is clo
2929

3030
To force the request to be handled within a specific geography, use the desired geographical endpoint. All requests are processed among the datacenters within the geography.
3131

32+
✔️ Feature: **Translator Text** </br>
33+
3234
| Service endpoint | Request processing data center |
3335
|------------------|--------------------------|
3436
|**Global (recommended):**</br>**`api.cognitive.microsofttranslator.com`**|Closest available data center.|

articles/ai-services/translator/text-translation-overview.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,9 @@ Add Text Translation to your projects and applications using the following resou
6262
6363
Text Translation data residency depends on the Azure region where your Translator resource was created:
6464
65-
* Translator resources **created** in any region in Europe are **processed** at data center in West Europe and North Europe.
66-
* Translator resources **created** in any region in Asia or Australia are **processed** at data center in Southeast Asia and Australia East.
67-
* Translator resource **created** in all other regions including Global, North America and South America are **processed** at data center in East US and West US 2.
68-
6965
### Text Translation data residency
7066
7167
✔️ Feature: **Translator Text** </br>
72-
✔️ Region where resource created: **Any**
7368
7469
| Service endpoint | Request processing data center |
7570
|------------------|--------------------------|

0 commit comments

Comments
 (0)