nidhal baccouri
commited on
Commit
路
21923f3
1
Parent(s):
8121640
fixed chinese translation
Browse files
deep_translator/constants.py
CHANGED
@@ -25,7 +25,7 @@ GOOGLE_CODES_TO_LANGUAGES = {
|
|
25 |
'ca': 'catalan',
|
26 |
'ceb': 'cebuano',
|
27 |
'ny': 'chichewa',
|
28 |
-
'zh': 'chinese
|
29 |
'zh-cn': 'chinese (simplified)',
|
30 |
'zh-tw': 'chinese (traditional)',
|
31 |
'co': 'corsican',
|
|
|
25 |
'ca': 'catalan',
|
26 |
'ceb': 'cebuano',
|
27 |
'ny': 'chichewa',
|
28 |
+
'zh': 'chinese',
|
29 |
'zh-cn': 'chinese (simplified)',
|
30 |
'zh-tw': 'chinese (traditional)',
|
31 |
'co': 'corsican',
|
deep_translator/google_trans.py
CHANGED
@@ -173,6 +173,5 @@ class GoogleTranslator(BaseTranslator):
|
|
173 |
|
174 |
if __name__ == '__main__':
|
175 |
|
176 |
-
txt =GoogleTranslator(source='
|
177 |
-
print("
|
178 |
-
# print("text: ", txt)
|
|
|
173 |
|
174 |
if __name__ == '__main__':
|
175 |
|
176 |
+
txt =GoogleTranslator(source='zh', target='en').translate('濂界殑') # GoogleTranslator(source='hindi', target='en').translate(text="ghar jaana hai")
|
177 |
+
print("text: ", txt)
|
|