Skip to content

Commit e98dd57

Browse files
committed
update snippet
1 parent 3fe2824 commit e98dd57

File tree

2 files changed

+1
-25
lines changed

2 files changed

+1
-25
lines changed

articles/cognitive-services/Translator/document-translation/how-to-guides/cognitive-services-rest-samples/curl/Translator/translate-with-glossary.json

Whitespace-only changes.

articles/cognitive-services/Translator/document-translation/how-to-guides/create-use-glossaries.md

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -43,31 +43,7 @@ A glossary is a list of terms with definitions that you create for the Document
4343

4444
1. **Specify your glossary in the translation request.** Include the **`glossary URL`**, **`format`**, and **`version`** in your **`POST`** request:
4545

46-
```json
47-
{
48-
"inputs": [
49-
{
50-
"source": {
51-
"sourceUrl": "https://my.blob.core.windows.net/source-en?sv=2019-12-12&st=2021-03-05T17%3A45%3A25Z&se=2021-03-13T17%3A45%3A00Z&sr=c&sp=rl&sig=SDRPMjE4nfrH3csmKLILkT%2Fv3e0Q6SWpssuuQl1NmfM%3D"
52-
},
53-
"targets": [
54-
{
55-
"targetUrl": "https://my.blob.core.windows.net/target-fr?sv=2019-12-12&st=2021-03-05T17%3A49%3A02Z&se=2021-03-13T17%3A49%3A00Z&sr=c&sp=wdl&sig=Sq%2BYdNbhgbq4hLT0o1UUOsTnQJFU590sWYo4BOhhQhs%3D",
56-
"language": "fr",
57-
"glossaries": [
58-
{
59-
"glossaryUrl": "https://my.blob.core.windows.net/glossaries/en-fr.tsv?sv=2019-12-12&st=2021-03-05T17%3A45%3A25Z&se=2021-03-13T17%3A45%3A00Z&sr=c&sp=rl&sig=BsciG3NWoOoRjOYesTaUmxlXzyjsX4AgVkt2AsxJ9to%3D",
60-
"format": "tsv",
61-
"version": "1.2"
62-
}
63-
]
64-
65-
}
66-
]
67-
}
68-
]
69-
}
70-
```
46+
:::code language="json" source="../../../../../cognitive-services-rest-samples/curl/Translator/translate-with-glossary.json" range="1-23" highlight="13-15":::
7147

7248
### Case sensitivity
7349

0 commit comments

Comments
 (0)