04a0e6dfbb
* Update client.py Accept languages names as dest/src params in the `translate` routine. Move dest/src params check to the `translate` routine. * Update constants.py Add LANGCODES dict * Update __init__.py Import LANGCODES * Update test_client.py Add tests * Update constants.py Fix typo
8 lines
224 B
Python
8 lines
224 B
Python
"""Free Google Translate API for Python. Translates totally free of charge."""
|
|
__all__ = 'Translator',
|
|
__version__ = '2.1.3'
|
|
|
|
|
|
from googletrans.client import Translator
|
|
from googletrans.constants import LANGCODES, LANGUAGES
|