LinguaHaru

LinguaHaru

Next-Gen AI Translation Tool Powered by LLM. Support Office documents, PDF, TXT, and more format with just one click.

Stars: 83

Visit
 screenshot

Next-generation AI translation tool that provides high-quality, precise translations for various common file formats with a single click. It is based on cutting-edge large language models, offering exceptional translation quality with minimal operation, supporting multiple document formats and languages. Features include multi-format compatibility, global language translation, one-click rapid translation, flexible translation engines, and LAN sharing for efficient collaborative work.

README:

LinguaHaru

English | 简体中文 | 日本語

Next-generation AI translation tool that provides high-quality, precise translations for various common file formats with a single click

Supported File Formats

📄 DOCX📊 XLSX📑 PPTX📰 PDF📝 TXT🎬 SRT

What's This?

This translation tool is based on cutting-edge large language models, offering exceptional translation quality with minimal operation, supporting multiple document formats and languages.

It provides the following features:

  • Multi-format compatibility: Perfect support for common file formats including .docx, .pptx, .xlsx, .pdf, .txt, .srt, with more document types to be expanded in the future.
  • Global language translation: Covers 10+ languages including Chinese/English/Japanese/Korean/Russian, continuously expanding to meet globalization needs.
  • One-click rapid translation: No complicated operations needed, just upload a file and click translate to instantly generate accurate translations.
  • Flexible translation engines: Freely switch between local models (Ollama) and online APIs (Deepseek/OpenAI, etc.), adapting to different usage environments at any time.
  • LAN sharing: One host computer can easily be used by all devices on the local network, enabling efficient collaborative work.

Installation and Usage

  1. CUDA
    You need to install CUDA (currently 11.7 and 12.1 have been tested without issues)

  2. Python (python==3.10)
    It is recommended to use Conda to create a virtual environment

    conda create -n lingua-haru python=3.10
    conda activate lingua-haru
  3. Install dependencies

    • Dependency packages
      pip install -r requirements.txt
    • Model download After downloading, please save in the "models" folder
  4. Run the tool

    python app.py

    Default access address is

    http://127.0.0.1:9980
  5. Local large language model support
    Currently only supports Ollama
    You need to download Ollama dependencies and models for translation

    • Download model (QWen series models recommended)
      ollama pull qwen2.5

Preview

Excel

PPT

PDF

Reference Projects

To-Do List

  • Add continue translation functionality.
  • Optimize Excel file translation speed.
  • Bilingual comparison for Word, Excel, etc.

Changelog

  • 2025/03/14 Updated to V2.0, added support for Txt files. Optimized Word/Excel/long text translation. Added customizable retry count functionality. Improved display of translation results.
  • 2025/02/01
    Updated the processing logic for failed translations.
  • 2025/01/15
    Fixed a bug in PDF translation, added multilingual support, and petted the kitty.
  • 2025/01/11
    Added support for PDF. Reference project: PDFMathTranslate
  • 2025/01/10
    Added support for deepseek-v3. Now you can use API for translation (more stable).
    Get API: https://www.deepseek.com/
  • 2025/01/03
    Happy New Year! Revised logic, added review functionality, and enhanced logging.

Software Disclaimer

The software code is completely open source and can be freely used under the GPL-3.0 license.
This software only provides AI translation services, and any content translated using this software is not related to its creator.
Users should comply with the law and engage in legal translation activities.

For Tasks:

Click tags to check more tools for each tasks

For Jobs:

Alternative AI tools for LinguaHaru

Similar Open Source Tools

For similar tasks

For similar jobs