Skip to content

th3happybit/json-translator-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

json-translator-cli

simple cli to translate your json i18n files

  1. GET api key from: Rapid api ms translator
  2. put api key in script in translate function
  3. pip install -r requirements.txt
  4. python translate_cli.py -h

Usage:

python translate_cli.py -i <inputfile> --li=<input language> -o <outputfile> --lo=<output language>

Example:

python translate_cli.py -i common.json -o common_fr.json --li=en --lo=fr

Contributing

Please feel free to fork this package and contribute by submitting a pull request to enhance the functionalities.