py-googletranslation icon indicating copy to clipboard operation
py-googletranslation copied to clipboard

pygoogletranslation: Free and Unlimited Google translate API for Python. Translates totally free of charge.

Results 15 py-googletranslation issues
Sort by recently updated
recently updated
newest added

Could anyone please fix the following import error when running "from pygoogletranslation import Translator"? Thanks a lot. "ImportError: cannot import name 'TranslatedPart' from 'googletrans.models' (/usr/local/lib/python3.7/dist-packages/googletrans/models.py)"

Traceback (most recent call last): File "c:/Users/user/Downloads/free-google-translate-master/Python/1.py", line 5, in translator.translate('Good Morning', dest='ta') File "C:\Users\user\AppData\Local\Programs\Python\Python37-32\lib\site-packages\googletrans\client.py", line 182, in translate data = self._translate(text, dest, src, kwargs) File "C:\Users\user\AppData\Local\Programs\Python\Python37-32\lib\site-packages\googletrans\client.py", line 78, in...

**Describe the bug** Import error when package is imported: Import Error: cannot import name 'TranslatedPart' from 'googletrans.models' **To Reproduce** Install and import pygoogletranslation ``` !pip install pygoogletranslation import pygoogletranslation ModuleNotFoundError:...

for example:今天天气真好,阳光明媚。翻译结果--->The weather is very nice today, the sun is shining brightly. 接口返回结果----> Today, the weather is so good, sunny.

`>>> from pygoogletranslation import Translator >>> translator = Translator() >>> translator.translate('Good Morning', dest='ta') ` It throw different code everytime.

Hi @Saravananslb Thanks for setting up a new translate library! Unfortunately, even for a minimal working example: ``` from pygoogletranslation import Translator translator = Translator() translator.translate('Good Morning', dest='ta') ``` I...

bug

**Describe the bug** No translations returned when the request is sent from a script run as a cron job. **To Reproduce** I have a list of sentences, created dynamically, like:...

i want to translate the sentence aa1="Do you want beneficial technologies being shaped by your ideas? Whether in the areas of mobility solutions, consumer goods, industrial technology or energy and...

```python trans = Translator() print(trans.detect('Hello boy')) ``` answer: ``` Detected(lang=, confidence=0.0) ``` but it works for Russian (with zero confidence): ```python print(trans.detect('Привет')) # Detected(lang=ru, confidence=0.0) ```

Tried to use bulk translate on a pdf file: ``` from pygoogletranslation import Translator translator = Translator() translation = translator.translate('日本語') print(translation) >>Translated(src=ja, dest=en, text=Japanese, pronunciation=, original_text=日本語 ,extra_data="{}...") bulk = translator.bulktranslate('annotation_ID07.pdf',...