Skip to content

Commit 70644ee

Browse files
committed
update region instructions
1 parent ba0a23e commit 70644ee

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

articles/cognitive-services/Translator/translator-text-apis.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -804,12 +804,12 @@ public class TranslatorText {
804804
const axios = require('axios').default;
805805
const { v4: uuidv4 } = require('uuid');
806806

807-
var key = "<YOUR-TRANSLATOR-KEY>";
808-
var endpoint = "https://api.cognitive.microsofttranslator.com";
807+
let key = "<YOUR-TRANSLATOR-KEY>";
808+
let endpoint = "https://api.cognitive.microsofttranslator.com";
809809

810810
// Add your location, also known as region. The default is global.
811811
// This is required if using a Cognitive Services resource.
812-
var location = "<YOUR-RESOURCE-LOCATION>";
812+
let location = "<YOUR-RESOURCE-LOCATION>";
813813

814814
axios({
815815
baseURL: endpoint,
@@ -1080,12 +1080,12 @@ public class TranslatorText {
10801080
const axios = require('axios').default;
10811081
const { v4: uuidv4 } = require('uuid');
10821082

1083-
var key = "<YOUR-TRANSLATOR-KEY>";
1084-
var endpoint = "https://api.cognitive.microsofttranslator.com";
1083+
let key = "<YOUR-TRANSLATOR-KEY>";
1084+
let endpoint = "https://api.cognitive.microsofttranslator.com";
10851085

10861086
// Add your location, also known as region. The default is global.
10871087
// This is required if using a Cognitive Services resource.
1088-
var location = "<YOUR-RESOURCE-LOCATION>";
1088+
let location = "<YOUR-RESOURCE-LOCATION>";
10891089

10901090
axios({
10911091
baseURL: endpoint,
@@ -1359,12 +1359,12 @@ public class TranslatorText {
13591359
const axios = require('axios').default;
13601360
const { v4: uuidv4 } = require('uuid');
13611361

1362-
var key = "<YOUR-TRANSLATOR-KEY>";
1363-
var endpoint = "https://api.cognitive.microsofttranslator.com";
1362+
let key = "<YOUR-TRANSLATOR-KEY>";
1363+
let endpoint = "https://api.cognitive.microsofttranslator.com";
13641364

13651365
// Add your location, also known as region. The default is global.
13661366
// This is required if using a Cognitive Services resource.
1367-
var location = "<YOUR-RESOURCE-LOCATION>";
1367+
let location = "<YOUR-RESOURCE-LOCATION>";
13681368

13691369
axios({
13701370
baseURL: endpoint,
@@ -1644,12 +1644,12 @@ public class TranslatorText {
16441644
const axios = require('axios').default;
16451645
const { v4: uuidv4 } = require('uuid');
16461646

1647-
var key = "<YOUR-TRANSLATOR-KEY>";
1648-
var endpoint = "https://api.cognitive.microsofttranslator.com";
1647+
let key = "<YOUR-TRANSLATOR-KEY>";
1648+
let endpoint = "https://api.cognitive.microsofttranslator.com";
16491649

16501650
// Add your location, also known as region. The default is global.
16511651
// This is required if using a Cognitive Services resource.
1652-
var location = "<YOUR-RESOURCE-LOCATION>";
1652+
let location = "<YOUR-RESOURCE-LOCATION>";
16531653

16541654
axios({
16551655
baseURL: endpoint,
@@ -1920,12 +1920,12 @@ public class TranslatorText {
19201920
const axios = require('axios').default;
19211921
const { v4: uuidv4 } = require('uuid');
19221922

1923-
var key = "<YOUR-TRANSLATOR-KEY>";
1924-
var endpoint = "https://api.cognitive.microsofttranslator.com";
1923+
let key = "<YOUR-TRANSLATOR-KEY>";
1924+
let endpoint = "https://api.cognitive.microsofttranslator.com";
19251925

19261926
// Add your location, also known as region. The default is global.
19271927
// This is required if using a Cognitive Services resource.
1928-
var location = "<YOUR-RESOURCE-LOCATION>";
1928+
let location = "<YOUR-RESOURCE-LOCATION>";
19291929

19301930
axios({
19311931
baseURL: endpoint,
@@ -2203,12 +2203,12 @@ public class TranslatorText {
22032203
const axios = require('axios').default;
22042204
const { v4: uuidv4 } = require('uuid');
22052205

2206-
var key = "<YOUR-TRANSLATOR-KEY>";
2207-
var endpoint = "https://api.cognitive.microsofttranslator.com";
2206+
let key = "<YOUR-TRANSLATOR-KEY>";
2207+
let endpoint = "https://api.cognitive.microsofttranslator.com";
22082208

22092209
// Add your location, also known as region. The default is global.
22102210
// This is required if using a Cognitive Services resource.
2211-
var location = "<YOUR-RESOURCE-LOCATION>";
2211+
let location = "<YOUR-RESOURCE-LOCATION>";
22122212

22132213
axios({
22142214
baseURL: endpoint,
@@ -2471,12 +2471,12 @@ public class TranslatorText {
24712471
const axios = require('axios').default;
24722472
const { v4: uuidv4 } = require('uuid');
24732473

2474-
var key = "<YOUR-TRANSLATOR-KEY>";
2475-
var endpoint = "https://api.cognitive.microsofttranslator.com";
2474+
let key = "<YOUR-TRANSLATOR-KEY>";
2475+
let endpoint = "https://api.cognitive.microsofttranslator.com";
24762476

24772477
// Add your location, also known as region. The default is global.
24782478
// This is required if using a Cognitive Services resource.
2479-
var location = "<YOUR-RESOURCE-LOCATION>";
2479+
let location = "<YOUR-RESOURCE-LOCATION>";
24802480

24812481
axios({
24822482
baseURL: endpoint,
@@ -2894,12 +2894,12 @@ public class TranslatorText {
28942894
const axios = require('axios').default;
28952895
const { v4: uuidv4 } = require('uuid');
28962896

2897-
var key = "<YOUR-TRANSLATOR-KEY>";
2898-
var endpoint = "https://api.cognitive.microsofttranslator.com";
2897+
let key = "<YOUR-TRANSLATOR-KEY>";
2898+
let endpoint = "https://api.cognitive.microsofttranslator.com";
28992899

29002900
// Add your location, also known as region. The default is global.
29012901
// This is required if using a Cognitive Services resource.
2902-
var location = "<YOUR-RESOURCE-LOCATION>";
2902+
let location = "<YOUR-RESOURCE-LOCATION>";
29032903

29042904
axios({
29052905
baseURL: endpoint,

0 commit comments

Comments
 (0)