gitmyhub

AiNiee

Python ★ 5.9k updated 9d ago

一款专注于Ai翻译的工具,一键自动翻译RPG SLG游戏,Epub TXT小说,PDF Word MD文档,Srt Vtt Lrc字幕等等复杂长文本。

Desktop app for translating games, novels, subtitles, and documents in bulk using AI. Configure an API key or local model, drop in a folder, and get translated output, no coding needed.

Pythonsetup: easycomplexity 2/5

AiNiee is a desktop application for translating large amounts of text using AI language models. It is primarily aimed at people who want to translate Japanese or other foreign-language content into Chinese (or other target languages), covering game text, novels, subtitles, and office documents in one tool.

The workflow is designed to be simple: configure an AI API key, drag a folder of source files into the application, and press start. AiNiee reads the files, sends the text to the AI model in batches, and writes translated output back to disk. It supports a wide range of file types including game text exports from tools like Mtool, Translator++, and RenPy, as well as Epub and TXT ebooks, SRT, ASS, VTT, and LRC subtitle files, and Word, PDF, Markdown, and PowerPoint documents.

For game translation specifically, the tool integrates with several popular game text extraction utilities that pull dialogue and UI strings out of RPG and visual novel formats. Users can run those extractors first, then feed the resulting files into AiNiee for translation. A library of regular expressions is included to help clean up game-specific formatting codes before and after translation.

AiNiee includes several features aimed at improving translation quality on long or complex texts. These include a terminology glossary that keeps character names and special terms consistent, chain-of-thought prompting that encourages the model to reason through ambiguous passages, context carry-over between chunks so dialogue stays coherent, and one-click AI polishing for a second-pass refinement. Users can also supply character descriptions and background notes to give the model more context about what it is translating.

The tool supports both cloud AI APIs (such as DeepSeek) and locally run language models via LM Studio or Ollama, so it can work without an internet connection if a local model is available. The README notes the tool is intended for personal, lawful use only.

Where it fits