Skip to content

Releases: Animenosekai/translate

v1.4

27 Feb 13:33
Compare
Choose a tag to compare

v1.4 Release

[add]

  • A better Yandex SID management (according #4 )
  • Adding DeepL (translation, language and dictionary) --> #5
  • Docstrings
  • Type Hints

[fix]

  • Backward compatibility
  • Typo

[update]

  • Updating the classifiers (setup.py)
  • Code Quality using Pylint
  • GitHub Actions for CI/CD

v1.2

14 Feb 19:06
Compare
Choose a tag to compare

New version for translatepy !

[fix]
We fixed multiple bugs, including:

  • #3 which prevented translations from Reverso

[improvement]

  • #4 (partially?), trying to avoid rate-limits from Yandex by caching the SID

[add]

  • #4 Letting the user choose which translator to use with the Translator class

Note: you can still refresh automatically the SID with the yandex_refresh_sid parameter when initializing Translator()

Note: passing Translator(False, False, False, False) will return None for every function called (no translator got selected)

Note: The class for a translator not selected is the Unselected class which is a blank class returning None for every function

v1.1

07 Feb 16:37
af32ace
Compare
Choose a tag to compare

translatepy v1.1!

[fix]
We fixed multiple bugs, including #2 which prevented the translation of long sentences.

[add]
A new attribute "service" in TranslationResult which determines which service got used for the translation

Usage:

>>> translation = translator.translate("Hello", "Japanese")
>>> translation.service
<translatepy.translators.google.GoogleTranslate object at 0x104858130>
>>> translation.service is translator.google_translate
True
>>> if translation.service is translator.bing_translate:
...    print("Used Bing Translator!")
... else:
...    print("Used other translator!")
'Used other translator!'

v1.0

07 Feb 01:28
Compare
Choose a tag to compare

The first version of translatepy!!

Features:

  • Translation
  • Transliteration
  • Language Detection
  • Spell Checking
  • Word Examples
  • Caching
  • Language Handling (with a pretty big dataset)

Services:

  • Google Translate
  • Bing
  • Yandex
  • Reverso