I have been testing the LibreTranslate in Docker using the following compose example and all works ok:
ams_translate:
container_name: ams_translate
image: libretranslate/libretranslate:latest
restart: unless-stopped
ports:
- “5000:5000”
tty: true
healthcheck:
test: [“CMD-SHELL”, “./venv/bin/python scripts/healthcheck.py”]
environment:
- LT_API_KEYS=true
- LT_API_KEYS_DB_PATH=/app/db/api_keys.db
- LT_UPDATE_MODELS=true
- LT_LOAD_ONLY=en,ja,ko,th,zh,id,ms,tl
But when I add “vi” to the LT_LOAD_ONLY it fails with the following error:
“Cannot update models (normal if you’re offline): Unavailable language codes: vi.”
example:
ams_translate:
container_name: ams_translate
image: libretranslate/libretranslate:latest
restart: unless-stopped
ports:
- “5000:5000”
tty: true
healthcheck:
test: [“CMD-SHELL”, “./venv/bin/python scripts/healthcheck.py”]
environment:
- LT_API_KEYS=true
- LT_API_KEYS_DB_PATH=/app/db/api_keys.db
- LT_UPDATE_MODELS=true
- LT_LOAD_ONLY=en,ja,ko,th,zh,id,ms,tl,vi
What am I doing wrong?
EDIT: I am using the GitHub - sigaloid/LibreTranslate.Net: LibreTranslate c# library C# wrapper