terryyin / translate-python

Online translation as a Python module & command line tool. No key, no authentication needed.
MIT License
724 stars 155 forks source link

Wrong translation from Chinese to Japanese #107

Open HeavySnowJakarta opened 9 months ago

HeavySnowJakarta commented 9 months ago
Python 3.10.5 (tags/v3.10.5:f377153, Jun  6 2022, 16:14:13) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from translate import Translator as tr
>>> t = tr(from_lang="zh", to_lang="ja")
>>> t.translate("你好")
'亲爱的 我想你了'
>>>

你好 in Chinese means "hello" here while 亲爱的 我想你了 is actually in Chinese instead of Japanese and it means "My dear I'm missing you".