diff --git a/examples/trans.py b/examples/trans.py index adbb929..cc1209d 100644 --- a/examples/trans.py +++ b/examples/trans.py @@ -5,7 +5,7 @@ english_text = 'happy coding' chinese_text = '這很好' -translator = GoogleTranslator(source='english', target='german') +translator = GoogleTranslator(source='auto', target='german') result1 = translator.translate(text=english_text) result2 = translator.translate(text=chinese_text)