Skip to content

ca_translate doesn't exist #53

@SoyMaster

Description

@SoyMaster

Is your README.txt up to date ?

from python_translators.translators.google_translator import GoogleTranslator
gt = GoogleTranslator(source_language='nl', target_language='en', key='AIzaSyA4MtvBIINuBpp-NwgNnsNuzWWjTxH35So')
gt.ca_translate('patate')

Which results in the error:

AttributeError                            Traceback (most recent call last)
<ipython-input-139-8fd1b838fc42> in <module>
      1 gt = GoogleTranslator(source_language='nl', target_language='en', key='AIzaSyA4MtvBIINuBpp-NwgNnsNuzWWjTxH35So')
----> 2 gt.ca_translate('patate')

AttributeError: 'GoogleTranslator' object has no attribute 'ca_translate'

I have also tried to do as in your tests, using the Queries Objects passed in the Google_translate_factory Objects. Why isn't it working like that in in your package? Your test doesn't seem to test the function you displayed in the README.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions