From 72169512eb5149512e11b3bd3c0e9fd740a1f45e Mon Sep 17 00:00:00 2001 From: nidhal baccouri Date: Fri, 25 Feb 2022 18:03:34 +0100 Subject: [PATCH] fixed examples --- examples/trans.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)