# LinguaHaru
**Repository Path**: CZJpython/LinguaHaru
## Basic Information
- **Project Name**: LinguaHaru
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: GPL-3.0
- **Default Branch**: main
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2025-07-18
- **Last Updated**: 2025-07-18
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README

English | [简体中文](README_ZH.md) | [日本語](README_JP.md)
📚 User Guide (Wiki)
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 • 📘 MD
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](https://developer.nvidia.com/cuda-downloads)
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](https://www.anaconda.com/download) to create a virtual environment
```bash
conda create -n lingua-haru python=3.10
conda activate lingua-haru
```
3. Install dependencies
- Dependency packages
```bash
pip install -r requirements.txt
```
- Model download
**After downloading, please save in the "models" folder**
- [Quark Cloud](https://pan.quark.cn/s/1cce837b7e15)
- [Google Drive](https://drive.google.com/file/d/1myjAeDmdsKku6ZKD0YV91I4voiNS1OGr/view?usp=sharing)
4. Run the tool
```bash
python app.py
```
Default access address is
```bash
http://127.0.0.1:9980
```
5. Local large language model support
Currently only supports [Ollama](https://ollama.com/)
You need to download Ollama dependencies and models for translation
- Download model (QWen series models recommended)
```bash
ollama pull qwen2.5
```
Preview
## Reference Projects
- [ollama-python](https://github.com/ollama/ollama-python)
- [PDFMathTranslate](https://github.com/Byaidu/PDFMathTranslate)
## To-Do List
- Add continue translation functionality.
## Changelog
- 2025/05/09
V3.0 update: Added multithreading and continuation translation features. Added translation support for Markdown files. Enhanced support for the Qwen3 series. Optimized log display.
- 2025/04/02
Updated to v2.3, adding custom icons/Title and supporting multi-task queues. Optimized translation result detection logic. Added a feature to show the translation result with the original text.
- 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](https://github.com/Byaidu/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
This software is fully open-source under the GPL-3.0 license and can be freely used.
It only provides AI-based translation services; the creator holds no responsibility for the translated content.
Please ensure your use complies with applicable laws and regulations.
Attribution is always appreciated and makes us happy~ but it's totally optional (´ω`)♡