
DocTranslator
DocTranslator is a powerful document AI translation tool that supports multiple file formats, OpenAI APIs, batch operations, multi-threading, and Docker deployment for efficient translation tasks! DocTranslator 是一款强大的文档 AI 翻译工具,支持多种文件格式、OpenAI格式、批量操作、多线程和 Docker 部署,以实现高效的翻译任务!🚀
Stars: 60

README:
DocTranslator 文档翻译,支持多种文件格式的翻译,兼容 OpenAI 格式的 API,并支持批量操作和多线程处理。无论是个人用户还是企业团队,DocTranslator 都能帮助你高效完成文档翻译任务!✨
-
支持多种文档格式
📑 txt、📝 markdown、📄 word、📊 csv、📈 excel、📑 pdf(非扫描版)、📽️ ppt 文档的 AI 翻译。 -
兼容 OpenAI 格式的 API
🤖 支持任何符合 OpenAI 格式的端点 API(中转 API),灵活适配多种 AI 模型。 -
批量操作
🚀 支持批量上传和翻译文档,提升工作效率。 -
多线程支持
⚡ 利用多线程技术,加速文档翻译过程。 -
Docker 部署
🐳 支持 Docker 一键部署,简单易用。
- 前端:Vue 3 + Vite
- 后端:Python + Flask+MySQL/SQLite
- AI 翻译:兼容 OpenAI 格式的 API
- 部署:Docker + Nginx
git clone https://github.com/mingchen666/DocTranslator.git
cd DocTranslator
在 backend/.env
文件中填写必要的环境变量
进入后端目录安装依赖:
cd backend
pip install -r requirements.txt
python app.py
/dist 文件夹已经是打包好了的,直接部署使用即可,不本地开发可以忽略下面步骤
前端
cd frontend
pnpm install
pnpm dev
管理端
cd admin
pnpm install
pnpm dev
- 前端:http://localhost:1475
- 管理端:http://localhost:8081
- 后端 API:http://localhost:5000
docker network create my-network
cd ..
docker run -d \
--name backend-container \
--network my-network \
-p 5000:5000 \
-v $(pwd)/backend/db:/app/db \
eggsunsky/doctranslator:latest
docker run -d \
--name nginx-container \
-p 1475:80 \
-p 8081:8081 \
-v $(pwd)/nginx/nginx.conf:/etc/nginx/conf.d/default.conf \
-v $(pwd)/frontend/dist:/usr/share/nginx/html/frontend \
-v $(pwd)/admin/dist:/usr/share/nginx/html/admin \
--network my-network \
nginx:stable-alpine
- 前端:http://localhost:1475
- 管理端:http://localhost:8081
- 后端 API:http://localhost:5000
DocTranslator/
├── frontend/ # 前端代码
├── admin/ # 管理员端代码
├── backend/ # 后端代码
├── nginx/ # Nginx 配置
│ └── nginx.conf # Nginx 配置文件
docker network create my-network
确保 DocTranslator/backend/.env
文件已正确填写环境变量。
cd DocTranslator/backend
docker build -t doctranslator .
cd ..
docker run -d \
--name backend-container \
--network my-network \
-p 5000:5000 \
-v $(pwd)/backend/db:/app/db \
doctranslator
docker run -d \
--name nginx-container \
-p 1475:80 \
-p 8081:8081 \
-v $(pwd)/nginx/nginx.conf:/etc/nginx/conf.d/default.conf \
-v $(pwd)/frontend/dist:/usr/share/nginx/html/frontend \
-v $(pwd)/admin/dist:/usr/share/nginx/html/admin \
--network my-network \
nginx:stable-alpine
- 前端:http://localhost:1475
- 管理端:http://localhost:8081
-
后端 API:http://localhost:5000
- 账号:admin ; 密码:123456
- 上传文档:在前端页面选择需要翻译的文档并上传。
- 选择翻译语言:设置目标语言并开始翻译。
- 查看结果:翻译完成后,下载翻译后的文档。
欢迎贡献代码!
在读生一枚,有点喜欢前端,喜欢探索AI应用和工具开发 🎉 感谢大家的支持!欢迎 Star ⭐️ 和 Fork 🍴,一起完善 DocTranslator!
本项目基于 ezwork 进行重构优化,感谢原作者的贡献!🙏
For Tasks:
Click tags to check more tools for each tasksFor Jobs:
Alternative AI tools for DocTranslator
Similar Open Source Tools

godoos
GodoOS is an efficient intranet office operating system that includes various office tools such as word/excel/ppt/pdf/internal chat/whiteboard/mind map, with native file storage support. The platform interface mimics the Windows style, making it easy to operate while maintaining low resource consumption and high performance. It automatically connects to intranet users without registration, enabling instant communication and file sharing. The flexible and highly configurable app store allows for unlimited expansion.

AI-Drug-Discovery-Design
AI-Drug-Discovery-Design is a repository focused on Artificial Intelligence-assisted Drug Discovery and Design. It explores the use of AI technology to accelerate and optimize the drug development process. The advantages of AI in drug design include speeding up research cycles, improving accuracy through data-driven models, reducing costs by minimizing experimental redundancies, and enabling personalized drug design for specific patients or disease characteristics.

vpnfast.github.io
VPNFast is a lightweight and fast VPN service provider that offers secure and private internet access. With VPNFast, users can protect their online privacy, bypass geo-restrictions, and secure their internet connection from hackers and snoopers. The service provides high-speed servers in multiple locations worldwide, ensuring a reliable and seamless VPN experience for users. VPNFast is easy to use, with a user-friendly interface and simple setup process. Whether you're browsing the web, streaming content, or accessing sensitive information, VPNFast helps you stay safe and anonymous online.

MaiMBot
MaiMBot is an intelligent QQ group chat bot based on a large language model. It is developed using the nonebot2 framework, utilizes LLM for conversation abilities, MongoDB for data persistence, and NapCat for QQ protocol support. The bot features keyword-triggered proactive responses, dynamic prompt construction, support for images and message forwarding, typo generation, multiple replies, emotion-based emoji responses, daily schedule generation, user relationship management, knowledge base, and group impressions. Work-in-progress features include personality, group atmosphere, image handling, humor, meme functions, and Minecraft interactions. The tool is in active development with plans for GIF compatibility, mini-program link parsing, bug fixes, documentation improvements, and logic enhancements for emoji sending.

sanic-web
Sanic-Web is a lightweight, end-to-end, and easily customizable large model application project built on technologies such as Dify, Ollama & Vllm, Sanic, and Text2SQL. It provides a one-stop solution for developing large model applications, supporting graphical data-driven Q&A using ECharts, handling table-based Q&A with CSV files, and integrating with third-party RAG systems for general knowledge Q&A. As a lightweight framework, Sanic-Web enables rapid iteration and extension to facilitate the quick implementation of large model projects.

AHU-AI-Repository
This repository is dedicated to the learning and exchange of resources for the School of Artificial Intelligence at Anhui University. Notes will be published on this website first: https://www.aoaoaoao.cn and will be synchronized to the repository regularly. You can also contact me at [email protected].

gez
Gez is a high-performance micro frontend framework based on ESM. It uses Rspack compilation and maps modules to URLs with strong caching and content-based hashing. Gez embraces modern micro frontend architecture by leveraging ESM and importmap for dependency management, providing reliable isolation with module scope, seamless integration with any modern frontend framework, intuitive development experience, and optimal performance with zero runtime overhead and reliable caching strategies.

MarkMap-OpenAi-ChatGpt
MarkMap-OpenAi-ChatGpt is a Vue.js-based mind map generation tool that allows users to generate mind maps by entering titles or content. The application integrates the markmap-lib and markmap-view libraries, supports visualizing mind maps, and provides functions for zooming and adapting the map to the screen. Users can also export the generated mind map in PNG, SVG, JPEG, and other formats. This project is suitable for quickly organizing ideas, study notes, project planning, etc. By simply entering content, users can get an intuitive mind map that can be continuously expanded, downloaded, and shared.

aimoneyhunter
AiMoneyHunter is a comprehensive collection of information on AI side hustle opportunities, covering various methods, technologies, tools, platforms, and channels for making money with AI. It aims to break information barriers in the AI era, enabling everyone to leverage AI intelligence for side hustles and earn extra income. The repository includes curated AI-related content sources, tips on starting a side hustle, and insights on using AI technologies for various money-making tasks.