@jsondeepl/cli
v0.0.10
Published
A CLI tool to translate JSON files using JsonDeepL API
Readme
Json DeepL CLI
A CLI tool to translate JSON files using JsonDeepL API
Usage
1. Install the package:
npm i -g @jsondeepl/cli2. Run command in your terminal:
jsondeeplFirst time you run the command for a project, it will automatically create a /jsondeepl directory and /jsondeepl/config.json configuration file.
You will need Your JsonDeepL API key.
// jsondeepl/config.json
{
"apiKey": "",
"engine": "deepl",
"formality": "prefer_less",
"langDir": "./i18n/locales",
"options": {
"prompt": true
},
"source": "en",
"target": [
"ar",
"bg",
"cs",
"da",
"de",
"el",
"en-GB",
"en-US",
"es",
"et",
"fi",
"fr",
"hu",
"id",
"it",
"ja",
"ko",
"lt",
"lv",
"nb",
"nl",
"pl",
"pt-BR",
"pt-PT",
"ro",
"ru",
"sk",
"sl",
"sv",
"tr",
"uk",
"zh"
]
}Development
- Clone this repository
- Install latest LTS version of Node.js
- Enable Corepack using
corepack enable - Install dependencies using
pnpm install - Run interactive tests using
pnpm dev
