Skip to content

Commit 53e54a1

Browse files
committed
translation script fix
1 parent 478410b commit 53e54a1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/execute-translation.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const fs = require('fs');
1212
const _ = require('lodash');
1313
// Cognitive services
1414
const request = require('request-promise');
15-
const uuidv4 = require('uuid/v4');
15+
const uuidv4 = require('uuid');
1616

1717
// Replace with process.env.subscriptionKey to get an access to Azure Cognitive services
1818
const subscriptionKey = process.env.SUBSCRIPTION_KEY;
@@ -105,7 +105,7 @@ function compareTranslationKeys(srcObj, dstObj) {
105105

106106
let toTranslate = [];
107107
// Array<string>
108-
try {
108+
try {
109109
dstKeys.forEach((locKey) => {
110110
if (typeof srcObj[locKey] !== "string") {
111111
// In case we have nested translation objects
@@ -118,7 +118,7 @@ function compareTranslationKeys(srcObj, dstObj) {
118118
} catch (error) {
119119
console.log(error.message);
120120
}
121-
121+
122122

123123
return toTranslate;
124124
}

0 commit comments

Comments
 (0)