Skip to content

Instantly share code, notes, and snippets.

@Davisy
Created January 9, 2021 07:32
Show Gist options
  • Save Davisy/7a2976d23b843c65ace0f4ff4c81ebb9 to your computer and use it in GitHub Desktop.
Save Davisy/7a2976d23b843c65ace0f4ff4c81ebb9 to your computer and use it in GitHub Desktop.
from google_trans_new import google_translator
translator = google_translator()
sentence = "Tanzania ni nchi inayoongoza kwa utalii barani afrika"
translate_text = translator.translate(sentence,lang_tgt='en')
print(translate_text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment