Skip to content

gaelo-dev/transjson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Transjson

a script that automates the translation of a json using the deepl api

Settings


Install dependencies

pip install -r requirements.txt

Environment variables

add an .env file and set the authentication token, like here:

DEEPL_KEY="your_token"

Other environment variables

  • DEFAULT_LANGUAGES -> languages to which the file will be translated without the need to specify it, it is of type list

Usage


Arguments

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

Example use

python transjson test.json -l "es, ja" -d ..\translations\

About

a script that automates the translation of a json using the deepl api

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages