foyoux / pygtrans

谷歌翻译, 支持 APIKEY 一口气翻译十万条
GNU General Public License v3.0
214 stars 48 forks source link

返回值更改 #20

Closed Zzz233 closed 2 years ago

Zzz233 commented 2 years ago

text = client.translate('请多多指教', target='ja') assert text.translatedText == 'お知らせ下さい'

现在应该是了: text = client.translate('请多多指教', target='ja') assert text.translatedText == ['お知らせ下さい', 'zh-CN']

lemisky commented 2 years ago

为什么呢? 你再试试。。

Zzz233 commented 2 years ago

为什么呢? 你再试试。。

这应该是google方面把api的返回值改掉了

lemisky commented 2 years ago

哎呀, 还真是

lemisky commented 2 years ago

已更新

lemisky commented 2 years ago

感谢反馈 @Zzz233