Update utils (#102)

This commit is contained in:
Nieole 2019-02-05 16:30:09 +08:00 committed by SuHun Han
parent 194d65a2e2
commit 4aebfb18fa
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
"""Free Google Translate API for Python. Translates totally free of charge.""" """Free Google Translate API for Python. Translates totally free of charge."""
__all__ = 'Translator', __all__ = 'Translator',
__version__ = '2.4.0' __version__ = '2.4.1'
from googletrans.client import Translator from googletrans.client import Translator

View File

@ -6,7 +6,7 @@ import json
def build_params(query, src, dest, token): def build_params(query, src, dest, token):
params = { params = {
'client': 't', 'client': 'webapp',
'sl': src, 'sl': src,
'tl': dest, 'tl': dest,
'hl': dest, 'hl': dest,