translate-python icon indicating copy to clipboard operation
translate-python copied to clipboard

Online translation as a Python module & command line tool. No key, no authentication needed.

Results 36 translate-python issues
Sort by recently updated
recently updated
newest added

translator = Translator(provider='microsoft', secret_access_key='KEY1....', to_lang='eng', from_lang='ch') fails with ``` return ' '.join(self.provider.get_translation(text_wraped) for text_wraped in text_list) File "C:\py38_64\lib\site-packages\translate\providers\microsoft.py", line 47, in get_translation raise TranslationError(data["error"]["message"]) translate.exceptions.TranslationError: The request is not authorized...

Wrong translation from Hindi to English and English to Hindi. Here is the image- ![image](https://github.com/terryyin/translate-python/assets/125719200/f49f013e-60f2-434f-8b36-926d94fdb2e2) It's sometimes don't translate into native language and there is some issue with English I...

``` Python 3.10.5 (tags/v3.10.5:f377153, Jun 6 2022, 16:14:13) [MSC v.1929 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> from translate import Translator as...

This is a weird behavior, I don't want to broke the community guideline. I tried to convert "Hello world" to Spanish, the result should be "Hola mundo", but it's giving...

I tried to use autodetect in both command-line and in the module. In both the instances, I get an error like this: "'' IS AN INVALID SOURCE LANGUAGE . EXAMPLE:...

Traceback (most recent call last): File "...translate\translate.py", line 45, in return ' '.join(self.provider.get_translation(text_wraped) for text_wraped in text_list) File "...translate\providers\mymemory_translated.py", line 49, in get_translation next_best_match = next(match for match in matches)...

ChatGPT gave me a fix for a bug in the library, you can find the fix below. kindly add it to the package :) ### The Error: --------------------------------------------------------------------------- StopIteration Traceback...

```python from translate import Translator translator = Translator(provider='deepl', from_lang='DE', to_lang='EN', secret_access_key='') translator.translate('Ich bin Max Mustermann') ``` **Error Message:** ```shell --------------------------------------------------------------------------- KeyError Traceback (most recent call last) Input In [81], in...

When attempting to translate some example text from Khmer to english, the translator fails. It's able to translate English into Khmer I fail to see why it wouldn't be able...