Reads a Json file from the user locally which contains words or sentences of natural human language, translates it by Google services and it gives out a Json with same keys and updated values.
Install Python from https://www.python.org/downloads/
pip install -r requirements.txt
- Set in the
terms.json
file the key-values object you want to translate - Run
py translate.py
- Specify the original texts language on request
- Specify the destination texts language on request
- Get the resulting translated object string
It's possible to run the command also as py transalate.py it en
so it gets specified on prior which languages to translate from and to.
If you run the script by py translate.py > output.json
you can save the resulting Json object directly to a local file.
If you press CTRL+Q
you can terminate in any moment the program exection but you keep the Json output of the work already did
Codes of two letters are requested as language identifiers
This is a software written in Python v.3 and it uses googletrans library
Author Suns Deglinnocenti a.k.a. Jackie
Software under the MIT license