@enplug/scripts 1.11.4-dev36 → 1.11.4-dev37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -113,17 +113,17 @@ function generateFormData(crowdinPath, localPath) {
|
|
|
113
113
|
|
|
114
114
|
console.log('localPath', localPath);
|
|
115
115
|
|
|
116
|
-
let filePath = path.join(__dirname, localPath);
|
|
117
|
-
let fileData = fs.readFileSync(filePath);
|
|
118
|
-
console.log('fileData', fileData);
|
|
119
|
-
console.log(fileData.slice(0, 100));
|
|
116
|
+
// let filePath = path.join(__dirname, localPath);
|
|
117
|
+
// let fileData = fs.readFileSync(filePath);
|
|
118
|
+
// console.log('fileData', fileData);
|
|
119
|
+
// console.log(fileData.slice(0, 100));
|
|
120
120
|
let formData = new FormData();
|
|
121
121
|
let file = fs.readFileSync(localPath);
|
|
122
122
|
console.log('file', file);
|
|
123
123
|
console.log(file.slice(0, 100));
|
|
124
124
|
// formData.append('file', file, 'en.json');
|
|
125
125
|
|
|
126
|
-
return
|
|
126
|
+
return file;
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
function postFileToCrowdin(credentials, crowdinPath, localPath) {
|