LibreTranslate: How to add additional language models?

My YunoHost server

Hardware: VPS
YunoHost version: 11.2.3
I have access to my server : Through SSH & Web
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
If your request is related to an app, specify its name and version: libretranslate 1.3.11~ynh2

Description of my issue

I have installed the current version 1.3.11~ynh2 of libretranslate,
but it looks like it is packaged with English and French only.

Does anyone knows how to add additional languages?

The instruction in the github repository does not work (How to add new languages? · Issue #13 · YunoHost-Apps/libretranslate_ynh · GitHub).

Thank you

@YouKnowHorst
To add a new language, I proceeded as follows

List of available languages.

sudo -u libretranslate /var/www/libretranslate/venv/bin/argospm search

Install the language you want.

sudo -u libretranslate /var/www/libretranslate/venv/bin/argospm install translate-de_en

The new language is added to the libretranslate service.

sudo nano /etc/systemd/system/libretranslate.service

Modify the line

ExecStart=/var/www/libretranslate/venv/bin/libretranslate --host 127.0.0.1 --port 21678 --load-only de,en,fr --frontend-language-target en

finally

sudo systemctl daemon-reload
sudo systemctl restart libretranslate.service
1 Like

@mib thank you very much. I will try it this evening.

@mib It works!

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.