diff --git a/deep_translator/constants.py b/deep_translator/constants.py index 0bb0d8e..898488e 100644 --- a/deep_translator/constants.py +++ b/deep_translator/constants.py @@ -25,7 +25,7 @@ 'ca': 'catalan', 'ceb': 'cebuano', 'ny': 'chichewa', - 'zh': 'chinese (simplified)', + 'zh': 'chinese', 'zh-cn': 'chinese (simplified)', 'zh-tw': 'chinese (traditional)', 'co': 'corsican', diff --git a/deep_translator/google_trans.py b/deep_translator/google_trans.py index a466997..5ad860c 100644 --- a/deep_translator/google_trans.py +++ b/deep_translator/google_trans.py @@ -173,6 +173,5 @@ def translate_batch(self, batch=None): if __name__ == '__main__': - txt =GoogleTranslator(source='en', target='en')#.translate('好的') # GoogleTranslator(source='hindi', target='en').translate(text="ghar jaana hai") - print("langs: ", txt._languages) - # print("text: ", txt) + txt =GoogleTranslator(source='zh', target='en').translate('好的') # GoogleTranslator(source='hindi', target='en').translate(text="ghar jaana hai") + print("text: ", txt)