@enplug/scripts 1.11.4-dev31 → 1.11.4-dev33
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,7 +113,7 @@ function generateFormData(crowdinPath, localPath) {
|
|
|
113
113
|
// const reader = new FileReader();
|
|
114
114
|
const formData = new FormData();
|
|
115
115
|
console.log('localPath', localPath);
|
|
116
|
-
const file = fs.readFileSync(
|
|
116
|
+
const file = fs.readFileSync(localPath);
|
|
117
117
|
console.log('file', file);
|
|
118
118
|
|
|
119
119
|
// formData.append('update_option', 'update_without_changes'); // Previous translations should remain valid
|
|
@@ -131,8 +131,8 @@ function generateFormData(crowdinPath, localPath) {
|
|
|
131
131
|
console.log('formData', formData);
|
|
132
132
|
return axios.post(url, formData, { headers: {
|
|
133
133
|
"Authorization": AuthStr,
|
|
134
|
-
"Content-Type":
|
|
135
|
-
"Crowdin-API-FileName":
|
|
134
|
+
"Content-Type": 'application/json',
|
|
135
|
+
"Crowdin-API-FileName": 'en.json'
|
|
136
136
|
} });
|
|
137
137
|
}
|
|
138
138
|
|