Socket
Socket
Sign inDemoInstall

@talend/i18n-scripts

Package Overview
Dependencies
13
Maintainers
1
Versions
68
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.7.0 to 2.8.0

2

common/xtm.js

@@ -41,3 +41,3 @@ /* eslint-disable no-param-reassign */

return res.json().then((payload) => {
error(payload.reason);
error(JSON.stringify(payload, null, 2));
});

@@ -44,0 +44,0 @@ }

@@ -12,5 +12,6 @@ # Extract

There are 4 methods of extraction
There are 5 methods of extraction
- npm : run an npm script
- yarn : same as npm but with yarn
- pnpm : same as npm but with pnpm
- files : get the files from a list of path

@@ -33,3 +34,3 @@ - expression : get the files matching an expression, starting with a provided folder

|---|---|
| method | `npm` or `yarn` |
| method | `npm` or `yarn` or `pnpm` |
| script | The npm script name |

@@ -52,3 +53,3 @@ | target | The folder where the npm script will gather the translation files. This is used to create the zip file. |

|---|---|
| method | `npm` or `yarn` |
| method | `files` |
| files | The list of files to extract. |

@@ -55,0 +56,0 @@ | target | The folder where the script will gather the translation files. This is used to create the zip file. Note that the files folder hierarchy is preserved. |

{
"name": "@talend/i18n-scripts",
"description": "Set of scripts to ease i18n workflow",
"version": "2.7.0",
"version": "2.8.0",
"license": "Apache-2.0",

@@ -6,0 +6,0 @@ "main": "index.js",

# Talend i18n scripts
<img src="./process.png">
![Process](./process.png)
The i18n process has multiple steps
1- Extract and upload
1. Extract and upload
2. Translation within the cloud system
3. Download and versioning to GitHub
4. Download translated files to the bundle
2- Translation within the cloud system
3- Download and versionning to github
The `@talend/i18n-scripts` module targets steps `1-2-3`.
4- Download translated files to the bundle
## Actions
The @talend/i18n-scripts module targets steps 1 - 2 - 3.
# Actions
There are 4 actions you can perform

@@ -29,3 +26,3 @@

# Configuration
## Configuration

@@ -38,4 +35,4 @@ The scripts are based on a `talend-i18n.json` configuration file at project root.

# Notes
## Notes
For those using windows, please use bash as some command won't work if run on windows shell
For those using windows, please use bash as some command won't work if run on Windows shell

@@ -37,3 +37,3 @@ const fs = require('fs');

function extractNpmYarn({ script, method, target }) {
function extractNode({ script, method, target }) {
if (!script || !target) {

@@ -238,3 +238,4 @@ error(`

case 'yarn':
extractNpmYarn(extract);
case 'pnpm':
extractNode(extract);
break;

@@ -241,0 +242,0 @@ case 'files':

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc