Commit
·
47622e8
1
Parent(s):
c4a0750
Update target language parameter in google_translation function
Browse files- helper/translators.py +1 -1
helper/translators.py
CHANGED
|
@@ -36,7 +36,7 @@ def get_translated_digit(sentence):
|
|
| 36 |
|
| 37 |
return "".join(each for each in translated_sentence)
|
| 38 |
|
| 39 |
-
def google_translation(sentence: str, source="auto", target="
|
| 40 |
"""
|
| 41 |
Translate a sentence from one language to another using Google Translator.\n
|
| 42 |
At first install dependencies \n
|
|
|
|
| 36 |
|
| 37 |
return "".join(each for each in translated_sentence)
|
| 38 |
|
| 39 |
+
def google_translation(sentence: str, source="auto", target="") -> str:
|
| 40 |
"""
|
| 41 |
Translate a sentence from one language to another using Google Translator.\n
|
| 42 |
At first install dependencies \n
|