cross-posted from: https://programming.dev/post/1924228
Hey everyone, check the Linguist
- you can translate texts offline (with sent no one single byte to a Google and stay private)
- a lot of features and flexible configuration
- dictionary + history for learn languages
- it is are hackable - you can write code to use your own translation service
You must log in or register to comment.
Oh wow…I had no idea this is an option. How would I do this? Is there a guide to integrate it with your add-on?
Yes, the links you needs:
- Linguist docs about custom translators https://github.com/translate-tools/linguist/blob/master/docs/CustomTranslator.md
- Code of custom translator for a LibreTranslate https://github.com/translate-tools/linguist-translators/blob/master/translators/LingvaTranslator.js
- Guide to deploy a LibreTranslate on local machine https://github.com/LibreTranslate/LibreTranslate#install-and-run (or to use with docker: https://github.com/LibreTranslate/LibreTranslate#can-i-use-libretranslate-behind-a-reverse-proxy-like-apache2-or-caddy)
A LibreTranslate may download a gigabytes data once, to get AI models for all language directions, then translation will runs on your computer