Skip to content

LibreTranslate is an excellent open-source local machine translation project that supports translation between numerous languages. The official documentation provides installation methods for various platforms and Docker, but does not offer a Windows integrated package; Docker must be used for installation on Windows.

https://libretranslate.com/

image.png

image.png

A simple integrated Windows package has been created, which can be used by extracting and double-clicking, making it convenient for novice users.

Download the Integrated Package

image.png

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

Download the integrated package from the provided link. After downloading, extract it to a directory. You will see a file named 启动.bat (Start.bat). Double-click it to start. Upon successful startup, the following image will be displayed:

image.png

Note: The first time you start it, translation models will be downloaded online. There are about 92 models in total, and the download time may be long, so please be patient.

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

After downloading, the models are stored in the user's home directory. Open any folder, delete the address bar content, enter the command %userprofile%/.local/share/argos-translate/packages, and press Enter to see all downloaded models.

After downloading and applying the update patch, the model path will change to the models folder within the integrated package directory. You will need to re-download the models or follow the instructions in the patch's readme.txt to copy the .local folder to the models directory.

You must have downloaded the models first to open this directory; otherwise, you will be prompted that the directory does not exist. image.png

It includes a web interface by default at http://127.0.0.1:5000. Open this address in your browser to see the following interface:

image.png

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

Using the API

After successfully starting by double-clicking 启动.bat, the API is also available at http://127.0.0.1:5000/translate.

The web interface displays a JavaScript code example for using the translation API:

image.png

Using in Video Translation Software

Open the video translation software, click on the menu → Translation Settings → LibreTranslate. In the window, enter http://127.0.0.1:5000/translate in the API URL text box, and leave the API KEY field empty.

image.png