Skip to content

LibreTranslate is an outstanding open-source local machine translation project, enabling translation between a wide range of languages. While official documentation covers installation on different platforms and via Docker, a ready-to-use Windows package isn't provided, making Docker installation necessary on Windows.

https://libretranslate.com/

image.png

image.png

To simplify the process for novice users, I've created a Windows integrated package. Just unzip and double-click to run!

Download the Integrated Package

image.png

Integrated Package Baidu Netdisk: https://pan.baidu.com/s/1UN7WL69DA59iKHHtT6h1GQ?pwd=a5ce Integrated Package Update Patch (Changes the model address to the integrated package directory instead of the model C drive home directory): https://pan.baidu.com/s/1yLWpJM8qXJO8sWVnZ_ew-A?pwd=g59m

Download the package from the provided address. After downloading, extract it to a directory. You'll find a file named 启动.bat (start.bat). Double-click this file to start the program. Upon successful startup, you will see the following:

image.png

Note that the first time you run the package, it will download translation models online. There are approximately 92 models, and the download process may take a while. Please be patient.

If the download fails, please configure your system proxy beforehand and restart 启动.bat.

By default, the downloaded models are stored in the user's home directory. To access this directory, open any folder, delete the contents of the address bar, and enter the command %userprofile%/.local/share/argos-translate/packages. Press Enter, and you will see all the downloaded models.

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

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

The package includes a built-in web interface, accessible at http://127.0.0.1:5000 by default. 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 displays the translation results.

Using the API

After successfully starting the program by double-clicking 启动.bat in the previous step, the API is ready to use. The API address is http://127.0.0.1:5000/translate.

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

image.png

Using it in Video Translation Software

Open your video translation software, click Menu -> Translation Settings -> LibreTranslate. In the API URL text box within the window, enter http://127.0.0.1:5000/translate. Leave the API KEY blank.

image.png