@@ -17,6 +17,7 @@ ms.devlang: csharp, golang, java, javascript, python
17
17
<!-- markdownlint-disable MD001 -->
18
18
<!-- markdownlint-disable MD024 -->
19
19
<!-- markdownlint-disable MD036 -->
20
+ <!-- markdownlint-disable MD049 -->
20
21
21
22
# Quickstart: Azure Cognitive Services Translator
22
23
@@ -251,8 +252,6 @@ import (
251
252
252
253
func main() {
253
254
key := "<YOUR-TRANSLATOR-KEY>"
254
- // Add your location, also known as region. The default is global.
255
- // This is required if using a Cognitive Services resource.
256
255
endpoint := "https://api.cognitive.microsofttranslator.com/"
257
256
uri := endpoint + "/translate?api-version=3.0"
258
257
@@ -515,22 +514,18 @@ After a successful call, you should see the following response:
515
514
516
515
```json
517
516
[
518
- {
519
- "detectedLanguage": {
520
- "language": "en",
521
- "score": 1.0
522
- },
523
- "translations": [
524
- {
525
- "text": "J'aimerais vraiment conduire votre voiture autour du pâté de maisons plusieurs fois!",
526
- "to": "fr"
527
- },
528
- {
529
- "text": "Ngingathanda ngempela ukushayela imoto yakho endaweni evimbelayo izikhathi ezimbalwa!",
530
- "to": "zu"
531
- }
532
- ]
533
- }
517
+ {
518
+ "translations": [
519
+ {
520
+ "text": "J'aimerais vraiment conduire votre voiture autour du pâté de maisons plusieurs fois!",
521
+ "to": "fr"
522
+ },
523
+ {
524
+ "text": "Ngingathanda ngempela ukushayela imoto yakho endaweni evimbelayo izikhathi ezimbalwa!",
525
+ "to": "zu"
526
+ }
527
+ ]
528
+ }
534
529
]
535
530
536
531
```
@@ -653,10 +648,6 @@ After a successful call, you should see the following response:
653
648
```json
654
649
[
655
650
{
656
- "detectedLanguage": {
657
- "language": "en",
658
- "score": 1.0
659
- },
660
651
"translations": [
661
652
{
662
653
"text": "J'aimerais vraiment conduire votre voiture autour du pâté de maisons plusieurs fois!",
@@ -764,22 +755,18 @@ After a successful call, you should see the following response:
764
755
765
756
```json
766
757
[
767
- {
768
- "detectedLanguage": {
769
- "language": "en",
770
- "score": 1.0
771
- },
772
- "translations": [
773
- {
774
- "text": "J'aimerais vraiment conduire votre voiture autour du pâté de maisons plusieurs fois!",
775
- "to": "fr"
776
- },
777
- {
778
- "text": "Ngingathanda ngempela ukushayela imoto yakho endaweni evimbelayo izikhathi ezimbalwa!",
779
- "to": "zu"
780
- }
781
- ]
782
- }
758
+ {
759
+ "translations": [
760
+ {
761
+ "text": "J'aimerais vraiment conduire votre voiture autour du pâté de maisons plusieurs fois!",
762
+ "to": "fr"
763
+ },
764
+ {
765
+ "text": "Ngingathanda ngempela ukushayela imoto yakho endaweni evimbelayo izikhathi ezimbalwa!",
766
+ "to": "zu"
767
+ }
768
+ ]
769
+ }
783
770
]
784
771
785
772
```
0 commit comments