@enplug/scripts 1.11.4-dev20 → 1.11.4-dev22

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.
@@ -110,13 +110,13 @@ function getCrowdinConfig() {
110
110
 
111
111
  function generateFormData(crowdinPath, localPath) {
112
112
  // const reader = new FileReader();
113
- const buffer = fs.readFileSync(localPath);
114
- console.log('buffer',buffer);
115
113
  const formData = new FormData();
116
-
114
+ console.log('localPath', localPath);
115
+ const file = await fs.readFile(localPath);
116
+ console.log('file', file);
117
117
  // formData.append('update_option', 'update_without_changes'); // Previous translations should remain valid
118
118
  // formData.append('json', '');
119
- formData.append('file', buffer, 'en.json');
119
+ formData.append('file', file, 'en.json');
120
120
  // formData.append(`export_patterns[${crowdinPath}]`, '%locale%.json');
121
121
  return formData;
122
122
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enplug/scripts",
3
- "version": "1.11.4-dev20",
3
+ "version": "1.11.4-dev22",
4
4
  "description": "Enplug scripts",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",