Created
August 31, 2020 21:52
-
-
Save XWilliamY/a70d63e6206c1a4b60a038c31b9b94f0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from googletrans import Translator | |
translator = Translator() | |
def google_translate(text, dest='en'): | |
return translator.translate(text, dest=dest) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment