googletrans-python

googletrans-python package.


Keywords
googletrans, googletranslate, googletranslateapi, translate, translation
Install
pip install googletrans-python==0.2.0

Documentation

Google Translate API for Python

This is a Python library that provides an interface to the Google Translate API.

Installation

You can install this library using pip:

pip3 install googletrans-python

Usage

import googletrans as gt

# Translate text from English to Korean
print(gt.translate("Hello, How are you?", "ko"))

# Translate text from English to Japanese
print(gt.translate("Hello, How are you?", "ja"))

# Translate text from English to French
print(gt.translate("Hello, How are you?", "fr"))
μ•ˆλ…•ν•˜μ„Έμš”. μ–΄λ–»κ²Œ μ§€λ‚΄μ„Έμš”?
γ“γ‚“γ«γ‘γ―ε…ƒζ°—γ§γ™γ‹οΌŸ
Bonjour comment allez-vous?

unofficial