@enplug/scripts 1.11.4-dev13 → 1.11.4-dev14
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.
|
@@ -186,7 +186,6 @@ async function uploadFileToCrowdinStorage(credentials, crowdinPath, localPath) {
|
|
|
186
186
|
tap({
|
|
187
187
|
next: response => {
|
|
188
188
|
if (response.data) {
|
|
189
|
-
console.log('response.data', response.data);
|
|
190
189
|
console.log(`${chalk.green.bold('Translations uploaded to Crowdin')} ${chalk.yellow.bold(`[${crowdinPath}]`)}`);
|
|
191
190
|
} else {
|
|
192
191
|
console.error('Unexpected result');
|
|
@@ -67,11 +67,10 @@ async function syncTranslations(s3Client, bucket) {
|
|
|
67
67
|
const subfolderName = path.split('/')[2];
|
|
68
68
|
const folderId = await findCrowdinAppSubFolderId(credentials, appDirectoryId, subfolderName);
|
|
69
69
|
const fileId = await getFileIdIfExists(credentials, folderId, path.split('/')[3]);
|
|
70
|
-
|
|
71
|
-
const storageId = await uploadFileToCrowdinStorage(credentials, config.crowdinPath, config.localPath)
|
|
72
|
-
console.log('storageId', storageId);
|
|
70
|
+
const storageId = await uploadFileToCrowdinStorage(credentials, config.crowdinPath, config.localPath);
|
|
73
71
|
if(fileId) {
|
|
74
|
-
await updateCrowdinFile(credentials, storageId.data.id, fileId);
|
|
72
|
+
const response = await updateCrowdinFile(credentials, storageId.data.data.id, fileId);
|
|
73
|
+
console.log('response', response.data);
|
|
75
74
|
}
|
|
76
75
|
} else {
|
|
77
76
|
// TODO Update dashboard transtlations file
|