@enplug/scripts 1.11.4-dev54 → 1.11.4-dev56

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.
@@ -209,9 +209,7 @@ async function addCrowdinFile(credentials, crowdinPath, storageId, folderId) {
209
209
  const body = {
210
210
  "storageId": storageId,
211
211
  "name": "en.json",
212
- "branchId": null,
213
212
  "directoryId": folderId,
214
- "title": null,
215
213
  "context": null,
216
214
  "type": "json",
217
215
  "parserVersion": 1,
@@ -227,7 +225,7 @@ async function addCrowdinFile(credentials, crowdinPath, storageId, folderId) {
227
225
  return from(axios.post(url, body, { headers: { Authorization: AuthStr } })).pipe(tap({
228
226
  next: response => {
229
227
  if (response.data) {
230
- console.log(`${chalk.green.bold('Translations uploaded to Crowdin')} ${chalk.yellow.bold(`[${crowdinPath}]`)}`);
228
+ console.log(`${chalk.green.bold('Translations added to Crowdin')} ${chalk.yellow.bold(`[${crowdinPath}]`)}`);
231
229
  } else {
232
230
  console.error('Unexpected result');
233
231
  console.log(response);
@@ -262,4 +260,4 @@ function promptAddFile(crowdinPath) {
262
260
  }));
263
261
  }
264
262
 
265
- module.exports = { getCrowdinCredentials, getCrowdinConfig, findCrowdinAppDirectoryId, findCrowdinAppSubFolderId, getFileIdIfExists, uploadFileToCrowdinStorage, updateCrowdinFile, uploadFileToCrowdin, fetchFileFromCrowdin };
263
+ module.exports = { getCrowdinCredentials, getCrowdinConfig, findCrowdinAppDirectoryId, findCrowdinAppSubFolderId, getFileIdIfExists, uploadFileToCrowdinStorage, updateCrowdinFile, addCrowdinFile, uploadFileToCrowdin, fetchFileFromCrowdin };
@@ -5,7 +5,7 @@ const inquirer = require('inquirer');
5
5
  const fs = require('fs');
6
6
  const path = require('path');
7
7
 
8
- const { getCrowdinCredentials, getCrowdinConfig, findCrowdinAppDirectoryId, findCrowdinAppSubFolderId, getFileIdIfExists, uploadFileToCrowdinStorage, updateCrowdinFile, uploadFileToCrowdin, fetchFileFromCrowdin } = require('./crowdin');
8
+ const { getCrowdinCredentials, getCrowdinConfig, findCrowdinAppDirectoryId, findCrowdinAppSubFolderId, getFileIdIfExists, uploadFileToCrowdinStorage, updateCrowdinFile, addCrowdinFile, uploadFileToCrowdin, fetchFileFromCrowdin } = require('./crowdin');
9
9
  const { checkKeys, validateTranslationFile } = require('./transloco');
10
10
  const { uploadTranslationToS3 } = require('./translation-s3');
11
11
  const getPackageJson = require('../getPackageJson');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enplug/scripts",
3
- "version": "1.11.4-dev54",
3
+ "version": "1.11.4-dev56",
4
4
  "description": "Enplug scripts",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",