Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I use google translation API in Django with python

I am using Django to create a project where I can change the language of website where user can use the page in any language they are comfortable with. But I am not sure how to implement google translate API in Django can anyone help me. I know that we can install google translation API using

"$ pip install googletrans"

but how can we implement this in Django framework. I am new to python. Thank you in advance.

like image 258
Gyaneshwor Avatar asked Apr 23 '26 19:04

Gyaneshwor


1 Answers

there is a pip package which you can import in your templates and there will be google translate button. django-google-translate visit this and you will find more information.

like image 182
ahmad Avatar answered Apr 25 '26 09:04

ahmad



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!