Today, I'm going to share with you guys how to automatically perform **language translation** in Python programming. Language translation is concerned with translating textual data from one language to textual data into another language. This is usually done in such a way the same message can be conveyed to different people speaking different languages . In this tutorial, I will guide you to build an Automatic Language Translator using the Python programming language. Once you understand this, you will be able to use Python to build a language translator with specifics to your use case. Python Libraries There are several libraries in Python for performing automatic language translation, below are some of those Libraries but almost all of them are using Google Translate API. goslate googletrans translate py-translate TextBlob Just check them out in detail and choose which one you like the most to use your personal projects involving language translation. goslate Installation $ pip install goslate will automatically detect your primary language of text and then translate it to secondary language you specify. goslate During specifying language you use ISO 639-1 codes you can find them here Example of Usage (gos.py) >>> goslate >>>primary_text = >>>gs = goslate.Goslate() >>>gs.translate(primary_text, ) import 'Love you a lot ' 'fr' "Je t'aime beaucoup" googletrans Installation $ pip install googletrans Googletrans is a and python library that implemented Google Translate API. This uses the to make calls to such methods as detect and translate. free unlimited Google Translate Ajax API For instance Let’s translate “This site is awesome ” to swahili language, also here language is represented in ISO 639-1 Example of Usage >>> text = >>> googletrans Translator >>> translator = Translator() >>> translator.translate(text , dest = ).text 'This site is awesome' from import 'sw' 'Tovuti hii ni ajabu' TextBlob Installation $ pip install -U textblob $ python -m textblob.download_corpora is a Python (2 and 3) library for processing textual data. It provides a simple API for diving into common natural language processing (NLP) tasks such as part-of-speech tagging, noun phrase extraction, sentiment analysis, classification, translation, and more. TextBlob Example of Usage >>> textblob TextBlob >>> blob = TextBlob( ) >>> blob.translate(to= ) TextBlob( ) from import 'comment ca va ?' 'en' "How is it going ?" I hope you find this tutorial interesting , don’t forget to to get more tutorial like this . subscribe If you find it useful don't forget to like it and share with your fellow developers. Also published at https://kalebujordan.com/python-language-translation/