Learn how to make a language translator and detector using Googletrans library (Google Translation API) for translating more than 100 languages with Python.

Google translate is a free service that translates words, phrases and entire web pages into more than 100 languages. You probably already know it and you have used it many times in your life.

In this tutorial, you will learn how to perform language translation in Python using Googletrans library. Googletrans is a free and unlimited Python library that make unofficial Ajax calls to Google Translate API in order to detect languages and translate text.

Here are the main features of this library:

  • Auto language detection (it offers language detection as well)
  • Bulk translations
  • Fast & reliable
  • HTTP/2 support
  • Connection pooling

First, let’s install it using pip:

pip3 install googletrans

#python #api

How to Translate Languages in Python
2.45 GEEK