lushan88a / google_trans_new

A free and unlimited python API for google translate.
MIT License
394 stars 171 forks source link

Spanish translation #13

Closed qxu1994 closed 3 years ago

qxu1994 commented 3 years ago

Hi!

I was trying to get Spanish translations of English words. For example: translator = google_translator()
translator.translate('children',lang_tgt='es')

But I got a TypeError: 'NoneType' object is not iterable

I manually checked the ones that didn't work. It seems that all of their Spanish translations have two forms, a feminine form and a masculine form.

If that is the reason, is it possible to return both forms?

Thanks!

lushan88a commented 3 years ago

This problem is real good! Thanks for the problem! I will solve this problem as soon as possible :)

lushan88a commented 3 years ago

I have fix this problem. You can try it. :)

qxu1994 commented 3 years ago

It works perfectly well now. Thanks a lot!