Config options

Here are the configuration options for JSON DeepL CLI.

jsondeepl/config.json

source
string required
The source language code for the translations. Refer to the supported source languages for the list of available language codes. E.g. en *case insensitive
target
string[] required
The target language codes for the translations. Refer to the supported target languages for the list of available language codes. E.g. ["de", "fr", "es"] *case insensitive
langDir
string required
E.g. ./i18n/locales - The directory where your locale JSON files are stored. This should point to the folder containing your translation files.
formality
'prefer_less' | 'prefer_more'
defaults to prefer_less
Specifies the formality level of the translation.
  • prefer_less: Translations will be casual tone where applicable.
  • prefer_more: Translations will be more formal where applicable.
options
object
Defaults to { prompt: true } if omitted.
PropDefaultDescription
prompt booleantrueset to false to disable console prompts for confirmations.
useful for CI and automation.

.env

Bring your own DeepL API key — a free-tier key works.

.env
DEEPL_API_KEY="your_deepl_api_key_here"