| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
To run this:
python3 translate_doc.py --help
usage: translate_doc.py [-h] [-s SOURCE] [-d DESTINATION] target
Simple Python script to translate text using Google Translate API (googletrans
wrapper)
positional arguments:
target Text/Document to translate
optional arguments:
-h, --help show this help message and exit
-s SOURCE, --source SOURCE
Source language, default is Google Translate's auto
detection
-d DESTINATION, --destination DESTINATION
Destination language, default is English
python translate_doc.py wonderland.txt --source en --destination ar
python translate_doc.py 'Bonjour' -s fr -d en
'Hello'
| Back | FazBrowse Home | New Git URL |