This repository was created to translate the Re:Zero web novel into German, aiming to make the translation process cost-effective and repeatable. Current options of translating:
- Do not support EPUB translations.
- Do not utilize AI translation, what limits quality.
- Expensive.
As of November 3, 2024:
Translating approximately 300 pages costs around 7 cents.
The minimum deposit amount for ChatGPT is 5 euros, plus a commission fee.
Please note that the ChatGPT deposit expires one year after the transfer.
To translate any EPUB book using this repository:
- Set up an environment variable named
OPENAI_API_KEYwith your OpenAI API key - Clone repository and install dependances (using python 3.11+ - tested on python 3.12.3)
git clone https://github.com/amikhasenko/Translation-with-ChatGPT-batching.git
cd Translation-with-ChatGPT-batching
pip install -r requirements.txt
- Edit
config.toml - Launch main script
python3 main.py
- Wait for the batch to complete and launch main script again. If the batch is completed it will replace epub file with it's translated version, if not - it'll show status and starting time.
- organise code
- create config file
- create CLI (
main.py) - create
requirements.txtfile - create UI
- test on different machines
- make a release