Skip to content

A Django web application to automatically translate manhwas into English, Japanese, French, Simplified Chinese, Traditional Chinese, Russian, German, Dutch, Spanish, and Italian.

License

Notifications You must be signed in to change notification settings

RedDeadDepresso/toonkor-translate

 
 

Repository files navigation

Installation

  • Clone the repo
  • Follow these instructions
  • Install the additional requirements
pip install -r requirements-django.txt
python manage.py migrate

Optional

Usage

Navigate to Toonkor Translate folder and in your terminal run the command:

python manage.py runserver
  • Open your browser and go to http://127.0.0.1:8000/
  • Click the button on the top right with a terminal icon. This will launch Comic Translate.
  • Paste your Gemini API key into Settings > Credentials in Comic Translate.
  • Go to Settings > Tools and change Translator to Gemini-1.5-Flash.
  • Go to Personalization > Language and change it to the language you want it translated to.
  • Go to the Browse section on the website and search for any manhwa you are interested in. You can enter English terms or paste a Mangadex URL directly.
  • Select the chapters you want translated and click the translate button on the top right. They will be added to the Comic Translate queue. Once finished, you can view the chapter in your browser.

Note

The Comic Translate opened by the browser is different from the one in comic.py.

It has some extra logic and the Django server will try to open it when translating chapters (See Changes Made for more informations).

It is therefore recommended to open Comic Translate when translating a manhwa only via the browser.

Changes Made

  • Implement a Django server
  • Create a subclass of ComicTranslate called ComicTranslateDjango in comic_django.py that can communicate with the Django server via websocket and use a queue system for icoming translation requests.

Acknowledgment

I'd like to express my gratitude to the following individuals, listed in no particular order:

  • ogkalu2: for creating Comic Translate. It was the most suitable for manhwa from other programs I tried.
  • Mangadex: for providing their API allowing the implementation of the search feature.
  • mantinedev: for the UI component library mantine and excellent documentation.

About

A Django web application to automatically translate manhwas into English, Japanese, French, Simplified Chinese, Traditional Chinese, Russian, German, Dutch, Spanish, and Italian.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 98.8%
  • TypeScript 1.1%
  • Other 0.1%