@crowdin/15min
Advanced tools
Comparing version 1.0.6 to 1.0.7
10
index.js
@@ -30,3 +30,3 @@ const crowdinModule = require('@crowdin/app-project-module'); | ||
getIntegrationFiles: things.integration.getIntegrationFiles, | ||
updateCrowdin: async (projectId, client, credentials, request, rootFolder) => { | ||
updateCrowdin: async (projectId, client, credentials, request, rootFolder, appSettings) => { | ||
const directories = await client.sourceFilesApi.withFetchAll().listProjectDirectories(projectId); | ||
@@ -44,3 +44,5 @@ | ||
for (var i = 0; i < request.length; i++) { | ||
var sourceEntyty = await things.integration.updateCrowdin(credentials, request[i].id); | ||
var sourceEntyty = await things.integration.updateCrowdin(credentials, request[i].id, { | ||
projectId, request, rootFolder, appSettings | ||
}); | ||
@@ -93,3 +95,5 @@ await crowdinAppFunctions.updateOrCreateFile( | ||
await things.integration.updateIntegration(credentials, response.data, languageCode, file); | ||
await things.integration.updateIntegration(credentials, response.data, languageCode, file, { | ||
projectId, client, request, rootFolder | ||
}); | ||
console.log(`Done uploading translations for ${file.name} to ${languageCode}`); | ||
@@ -96,0 +100,0 @@ } |
{ | ||
"name": "@crowdin/15min", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
5187
100