Skip to content

Commit

Permalink
Merge branch 'main' of github.com:th3happybit/json-translator-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
Oussama Messabih committed Mar 6, 2022
2 parents 1cb50d3 + e1c4b28 commit 599a7c6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/_config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
theme: jekyll-theme-cayman
16 changes: 16 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# json-translator-cli
simple cli to translate your json i18n files

1. GET api key from: [Rapid api ms translator](https://rapidapi.com/microsoft-azure-org-microsoft-cognitive-services/api/microsoft-translator-text/)
2. `pip install -r requirements.txt`
3. `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.

0 comments on commit 599a7c6

Please sign in to comment.