Skip to content

LibreTranslate is an excellent open source local machine translation project that supports mutual translation between many languages. The official website provides installation methods for various platforms, as well as docker installation methods, but does not provide a Windows integrated package, which requires docker installation on Windows.

https://libretranslate.com/

image.png

image.png

I have simply created a Windows integrated package, which can be used by double-clicking after extraction, to facilitate use by novice users.

Download Integrated Package

image.png

Integrated package Baidu Netdisk address: https://pan.baidu.com/s/1UN7WL69DA59iKHHtT6h1GQ?pwd=a5ce Integrated package update patch download (change the model address to the models directory under the integrated package instead of the model's C drive home directory): https://pan.baidu.com/s/1yLWpJM8qXJO8sWVnZ_ew-A?pwd=g59m

Download the integrated package at this address, extract it to a directory, and you will see a 启动.bat file. Double-click it to start, and the following figure will be displayed after the startup is successful.

image.png

Note that the translation model will be downloaded online for the first time, with a total of about 92 models. The download time is relatively long, please be patient.

If the download fails, please set up the system proxy in advance and restart 启动.bat

The models downloaded by the integrated package are stored in the user's home directory. Open a folder at will, delete the content in the address bar, enter the command %userprofile%/.local/share/argos-translate/packages and press Enter to see all the downloaded models.

After downloading and overwriting the patch package, the model address will be changed to the models folder under the integrated package directory. You need to re-download the model or view the instructions in the patch package说明.txt to copy the .local folder to models

You need to have a download before you can open this directory, otherwise it will prompt that the directory does not exist image.png

Comes with a web interface, the default address is http://127.0.0.1:5000, open this address in the browser to see the following interface

image.png

The left side is the original text input area to be translated, and the right side is the translation result area.

Use API

After successfully starting by double-clicking 启动.bat in the previous step, the API can also be used. The API address is http://127.0.0.1:5000/translate

The JavaScript code example for using the translation API is displayed on the webpage

image.png

Use in Video Translation Software

Open the video translation software, click Menu--Translation Settings--LibreTranslate, enter http://127.0.0.1:5000/translate in the API URL text box in the window, and keep the API KEY blank.

image.png