a script that automates the translation of a json using the deepl api
pip install -r requirements.txt
add an .env file and set the authentication token, like here:
DEEPL_KEY="your_token"
- DEFAULT_LANGUAGES -> languages to which the file will be translated without the need to specify it, it is of type list
file -l [languages] -d [directory]
- file -> file to translate
- languages -> languages to translate (eg: "en, es")
- directory -> directory where the new translations will be saved
python transjson test.json -l "es, ja" -d ..\translations\