Skip to content

Commit e8af69c

Browse files
authored
Merge pull request #56862 from Jann-Skotdal/master
[cog svcs] update transliteration example
2 parents ac765d9 + 3def1ff commit e8af69c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/cognitive-services/Translator/reference/v3-0-translate.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ Let's extend the previous example by adding transliteration. The following reque
258258
# [curl](#tab/curl)
259259

260260
```
261-
curl -X POST "https://api.cognitive.microsofttranslator.com/translate?api-version=3.0&to=zh-Latn" -H "Ocp-Apim-Subscription-Key: <client-secret>" -H "Content-Type: application/json" -d "[{'Text':'Hello, what is your name?'}]"
261+
curl -X POST "https://api.cognitive.microsofttranslator.com/translate?api-version=3.0&to=zh-Hans&toScript=Latn" -H "Ocp-Apim-Subscription-Key: <client-secret>" -H "Content-Type: application/json" -d "[{'Text':'Hello, what is your name?'}]"
262262
```
263263

264264
---
@@ -272,7 +272,7 @@ The response body is:
272272
"translations":[
273273
{
274274
"text":"你好, 你叫什么名字?",
275-
"transliteration":{"text":"nǐ hǎo , nǐ jiào shén me míng zì ?","script":"Latn"},
275+
"transliteration":{"script":"Latn", "text":"nǐ hǎo , nǐ jiào shén me míng zì ?"},
276276
"to":"zh-Hans"
277277
}
278278
]

0 commit comments

Comments
 (0)