Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specific translation does not work #419

Open
3 of 6 tasks
kmilodenisglez opened this issue Sep 25, 2024 · 1 comment
Open
3 of 6 tasks

Specific translation does not work #419

kmilodenisglez opened this issue Sep 25, 2024 · 1 comment

Comments

@kmilodenisglez
Copy link

Googletrans version:

  • 4.0.0rc1
  • 3.1.0a0
  • 3.0.0
  • 2.x

I'm submitting a ...

  • bug report
  • feature request

Current behavior:

When I try to translate the text "Set Commission In Percentage For This Seller" from English to Spanish, it gives me the error: AttributeError: 'NoneType' object has no attribute 'group'

Related code:

from googletrans import Translator

translator = Translator()
translation = translator.translate("Set Commission In Percentage For This Seller", dest="es")

Other information:

@jo47011
Copy link

jo47011 commented Oct 13, 2024

Same for me:

translator.translate("Printer", dest="de")

raises an

TypeError("'NoneType' object is not iterable")

Strange enough, this works:

translator.translate("PrinterFoobar", dest="de")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants