Skip to content

bravohenry/epub-translator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ePub Bilingual Translator

ePub Translator

ePub Translator

An elegant bilingual translation tool for ePub books

version license platform PRs Welcome

Screenshot

Background

With the rise of Chinese AI companies like DeepSeek and their advanced Large Language Models (LLMs), high-quality translation has become more accessible and affordable than ever before. DeepSeek's LLMs demonstrate exceptional performance in understanding context and maintaining consistency in long-form content translation, making them particularly suitable for translating books and documents.

This project leverages these technological advancements to create an elegant, user-friendly tool that helps readers access literature across language barriers. By supporting multiple translation APIs and offering flexible configuration options, we aim to provide a superior bilingual reading experience while keeping the costs minimal.

✨ Features

  • 🎯 Multiple Translation API Support
    • DeepSeek API (Recommended)
    • OpenAI API
    • Google Translate API
  • 🎨 Elegant Linear-style Interface
  • 📚 Perfect Preservation of Original Formatting
  • 🔄 Real-time Translation Progress
  • ⚡ Pause & Resume Support
  • 🛠️ Rich Translation Options
    • Translation Styles (Literal/Free/Balanced)
    • Domain Expertise (General/Technical/Literary/Business/Academic)
    • Bilingual Display Mode

🚀 Getting Started

Prerequisites

  • macOS 10.15+
  • Node.js 16+
  • Python 3.9+
  • npm 7+

Installation

  1. Clone the repository:
git clone https://github.com/yourusername/epub-translator.git
cd epub-translator
  1. Install dependencies:
# Install Node.js dependencies
npm install

# Install Python dependencies
pip3 install -r requirements.txt

Usage

  1. Start the application:
npm start
  1. Configure translation settings:

    • Choose translation API (DeepSeek/OpenAI/Google)
    • Set up API key
    • Select translation style and domain
  2. Select an ePub file

  3. Click "Start Translation"

  4. Find the bilingual version in the same directory as the original file

📦 Tech Stack

  • Frontend
    • React 18
    • Vite
    • Tailwind CSS
    • Linear UI Design
  • Backend
    • Electron
    • Python
    • ebooklib

🤝 Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'feat: Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

📝 License

This project is licensed under the MIT License - see the LICENSE file for details

👨‍💻 Author

Henry Huang
Henry Huang


🙏 Acknowledgments

Special thanks to:

About

An elegant bilingual translation tool for ePub books

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published