Answers for "how to use google translate in python"

2

translate sentences in python

# First install translate with pip in cmd
pip install translate

# Code
from translate import Translator
translator= Translator(from_lang="german",to_lang="spanish")
translation = translator.translate("Guten Morgen")
print(translation)
Posted by: Guest on November-09-2020
2

google translate python

from deep_translator import GoogleTranslator
print(GoogleTranslator('auto','en').translate('Hola!'))
Posted by: Guest on August-06-2021

Code answers related to "how to use google translate in python"

Python Answers by Framework

Browse Popular Code Answers by Language