@talend/i18n-scripts
Advanced tools
Comparing version 2.4.0 to 2.5.0
@@ -243,6 +243,6 @@ /* eslint-disable no-param-reassign */ | ||
function getProjectTemplate(data) { | ||
const { projectName } = data; | ||
const { templateName } = data; | ||
const xtm = getXTMVariables(); | ||
printRunning(`Get template for project "${projectName}"...`); | ||
printRunning(`Get template for project "${templateName}"...`); | ||
return fetch(`${xtm.apiUrl}/projects/templates?customerIds=${xtm.customerId}&scope=ALL`, { | ||
@@ -253,3 +253,3 @@ headers: { Authorization: `XTM-Basic ${xtm.token}` }, | ||
.then((res) => res.json()) | ||
.then((templates) => templates.find((template) => template.name === projectName)) | ||
.then((templates) => templates.find((template) => template.name === templateName)) | ||
.then((template) => { | ||
@@ -261,3 +261,3 @@ if (template) { | ||
} else { | ||
error(`${projectName} template not found`); | ||
error(`${templateName} template not found`); | ||
} | ||
@@ -264,0 +264,0 @@ }); |
@@ -12,7 +12,7 @@ # Upload/Download | ||
| Variable | Description | | ||
|---|---| | ||
| XTM_API_URL | The XTM api url | | ||
| XTM_CUSTOMER_ID | The XTM customer ID | | ||
| XTM_TOKEN | The XTM authentication token | | ||
| Variable | Description | | ||
| --------------- | ---------------------------- | | ||
| XTM_API_URL | The XTM api url | | ||
| XTM_CUSTOMER_ID | The XTM customer ID | | ||
| XTM_TOKEN | The XTM authentication token | | ||
@@ -25,3 +25,4 @@ ## Upload | ||
"load": { | ||
"project": "UI" | ||
"project": "ui-forms", | ||
"template": "TUI", | ||
} | ||
@@ -31,5 +32,6 @@ } | ||
| Configuration | Description | | ||
|---|---| | ||
| project | The XTM project name. | | ||
| Configuration | Description | | ||
| ------------- | ----------------------------------------------------------------------------------------------- | | ||
| project | The XTM project name. | | ||
| template | The XTM project template name. If not provided, it will take the project name as template name. | | ||
@@ -49,7 +51,7 @@ | ||
| Configuration | Description | | ||
|---|---| | ||
| project | The XTM project name. | | ||
| fixQuote | transforms odd numbers of quote on properties files | | ||
| Configuration | Description | | ||
| ------------- | --------------------------------------------------- | | ||
| project | The XTM project name. | | ||
| fixQuote | transforms odd numbers of quote on properties files | | ||
It will download only the files corresponding to the current version of your project (version extracted). If no version is detected, all versions will be downloaded. |
{ | ||
"name": "@talend/i18n-scripts", | ||
"description": "Set of scripts to ease i18n workflow", | ||
"version": "2.4.0", | ||
"version": "2.5.0", | ||
"license": "Apache-2.0", | ||
@@ -6,0 +6,0 @@ "main": "index.js", |
@@ -9,2 +9,3 @@ const path = require('path'); | ||
filePath: path.join(process.cwd(), extract.target, 'i18n.zip'), | ||
templateName: load.template || load.project, | ||
projectName: load.project, | ||
@@ -11,0 +12,0 @@ version: getVersion(), |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
116745
1566