Free and Open Source Machine Translation API, entirely self-hosted. Unlike other APIs, it doesn’t rely on proprietary providers such as Google or Azure to perform translations. Instead, its translation engine is powered by the open source Argos Translate library.
Great news! I’ve finally got the time to give some love to this package. This package still uses the latest version of LibreTranslate but changes the way LibreTranslate is built.
News:
Build LibreTranslate from source: Previous version of the package installed a more than 5Gb huge version of LibreTranslate. Now, you have two choices:
the CPU version: a lighter version, without all the cuda (GPU) dependencies (± 1Gb);
the CUDA version: if you have an NVIDA GPU and an AVX-supporterd CPU : a bigger version with GPU support (± 5Gb) but if you use this app only casually, you won’t notice a difference as compared to the CPU version. Note: this upgrade will install the CPU version. You’ll be able to change the version in the new config panel (see below) if you wish (you then have to force upgrade the app for this to take effect).
A new environment file: all settings are now in __INSTALL_DIR__/.env so you don’t have to adapt libretranslate.service for each change anymore. All possible variables are written inside so you have more control of your installation.
A new config_panel (accessible at yunohost/admin/#/apps/libretranslate/_core/) where you can easily change some settings (such as which language to install) without going to the CLI.
Unfortunately, you’ll have to redownload all the models you need (but now you can do this via the webadmin). Only en and fr will be available.
API-keys are normally kept after this upgrade if their database is located in __INSTALL_DIR__/db/(usually api_keys.db).
Tried now on a Proxmox Yunohost virtual machine
Fresh install with settings :
subdomain (domain owned and working ok)
visitors
en,fr
cpu
I’ve not set any API key… ? (do I really need 1 ? I’ve not really understood if it’s needed or not… Looks like not)
Going on this subdomain is working nice, tried some french sentences to english is ok.
Thx for this
EDIT : on the top bar “https://docs/” is the link of “Documentation de l’API”, not good
Thanks a lot for your input!
An api key is not needed but you can create one to use your instance in an Android app for example, or to limit the use of your instance but forcing everyone to have an api key to be able to translate their content on your instance.