googletrans is a simple translation interface that utilizes Google Translator python library. This script can simply be integrated into other projects.
- Clone the repository:
git clone https://github.com/ali-mohammadi/googletrans.git
- Install the dependencies:
pip install -r requirements.txt
- Run the script using the
main.py <json>
. You're all set!
json format:
{
"text": "<input-text>",
"des": "<language-to>",
"src": "<language-from> (optional, default: auto)"
}
This project is licensed under the MIT License.