Releases: Animenosekai/translate
Releases · Animenosekai/translate
v1.4
v1.2
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
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
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