Nidhal Baccouri commited on
Commit
cc60be4
·
unverified ·
2 Parent(s): 7d64f81 6137b0e

Merge pull request #92 from kuspia/master

Browse files
Files changed (1) hide show
  1. deep_translator/google_trans.py +2 -4
deep_translator/google_trans.py CHANGED
@@ -36,7 +36,7 @@ class GoogleTranslator(BaseTranslator):
36
  element_tag='div',
37
  element_query={"class": "t0"},
38
  payload_key='q', # key of text in the url
39
- hl=self._target,
40
  sl=self._source,
41
  **kwargs)
42
 
@@ -90,9 +90,7 @@ class GoogleTranslator(BaseTranslator):
90
  if self.payload_key:
91
  self._url_params[self.payload_key] = text
92
 
93
- # temporary fix the problem with translation Russian into Ukrainian
94
- if self._source == 'ru' and self._target == 'uk':
95
- self._url_params['tl'] = 'uk'
96
 
97
  response = requests.get(self.__base_url,
98
  params=self._url_params,
 
36
  element_tag='div',
37
  element_query={"class": "t0"},
38
  payload_key='q', # key of text in the url
39
+ tl=self._target,
40
  sl=self._source,
41
  **kwargs)
42
 
 
90
  if self.payload_key:
91
  self._url_params[self.payload_key] = text
92
 
93
+
 
 
94
 
95
  response = requests.get(self.__base_url,
96
  params=self._url_params,