You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
The text was updated successfully, but these errors were encountered:
its because some words in Spanish has two translations one feminine and one masculine so google returns both translation so it becomes array, i added condition in the parsing login where if there is array then return its first element, it works for me.
Googletrans version:
I'm submitting a ...
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:
Other information:
The text was updated successfully, but these errors were encountered: