Flask GoogleTranslate API using the 'googletrans' library - https://pypi.org/project/googletrans/
Googletrans is a free and unlimited python library that implemented Google Translate API. This uses the Google Translate Ajax API to make calls to such methods as detect and translate.
Compatible with Python 3.6+.
You can find the full documentation here - https://github.com/ssut/py-googletrans
1 - Install Python 3.*
2 - Open your terminal and run the following commands
- mkdir myproject
- cd myproject
- python3 -m venv venv
3 - Before you work on your project, activate the corresponding environment:
- venv\Scripts\activate
4 - Now install the pip dependencies
- pip install -r requirements.txt
Congrats now enjoy Googletrans on your Flask Environment
PS: If you would like to deploy your app online on Heroku, I already created the 'Procfile' file. Use the below guide for more informaiton on how to deploy it on Heroku: https://stackabuse.com/deploying-a-flask-application-to-heroku/
Thanks Suhun Han