Skip to content

v0.4.0

Compare
Choose a tag to compare
@MRGRD56 MRGRD56 released this 25 Mar 18:34
· 31 commits to master since this release
  • Add new translator - Translators.LibreTranslate.
  • Defined translators "API" has been changed again, configuration must be updated. DefinedTranslators has been renamed to Translators. Every pre-defined translator is a function now. It's for translators to have configuration parameters like api key and stuff like that. Instead of DefinedTranslators.GOOGLE_TRANSLATE you should use Translators.GoogleTranslate(). Debug translators have been moved to the DefinedTranslators.debug object. Translators can be extended by your own translators. Pre-defined translators cannot be deleted or modified (or at least not supposed to be).
  • Configuration loading optimizations: it's now cached if you don't touch the profiles settings. It means a configuration code itself might not be executed on every new sentence. The functions passed to configuration parameters are called as before. Still, it's better not to include initialization logic in the outer scope of configuration scripts.
  • Improve types in JS editor
  • Add URL, URLSearchParams, node.js net variables to configs