Replace built-in Google Translate with a custom API for better accessibility and quality.
中文说明
·
Report Bug
·
Request Feature
A custom translation plugin for KOReader designed to replace the built-in Google Translate backend. It redirects translation requests to a custom API translation project to solve issues where the official Google Translate interface is unavailable or restricted in certain network environments, or to achieve better translation quality.
This project is distributed as a KUAL (Kindle Unified Application Launcher) extension, but also supports manual installation via scripts on other devices running KOReader (e.g., Kobo, Android).
- Custom Translation Source: Uses a custom API endpoint (
translate.api.tokisaki.top) instead of the default backend. - Wide Language Support: Supports up to 249 languages, preserving KOReader's native auto-detection and Pinyin/Romaji features.
- One-click Install/Restore:
- Kindle: Install patches or restore the original version with one click via the KUAL menu.
- Other Devices: Automated Shell scripts provided for installation and restoration.
- Safe Backup: The installation script automatically detects and backs up the original
translator.luafile, ensuring you can revert at any time.
- KOReader installed (latest version recommended).
- Kindle Users: Jailbroken with KUAL (Kindle Unified Application Launcher) and MRPI (MobileRead Package Installer) installed.
- Other Devices: Permission to access the file system and run Shell scripts (usually via terminal or SSH).
- Download the latest Release.
- Copy the extracted
kindle-koreader-custom-translatorfolder to theextensionsfolder on your Kindle's root directory.- Path should be:
/mnt/us/extensions/kindle-koreader-custom-translator/
- Path should be:
- Unplug the USB cable and open KUAL on your Kindle.
- Locate the KOReader Custom Translator menu.
- Click Install.
- Installation status will be displayed at the top of the screen.
- After installation, restart KOReader for changes to take effect.
If you don't use KUAL, you can manually replace KOReader's core translation file. Copy translator.lua from the project folder to the corresponding location in your KOReader installation directory: pathtokoreader/frontend/ui/translator.lua, overwriting the original file.
For example, on Kindle, the path might be /mnt/us/koreader/frontend/ui/translator.lua.
If you cannot use KUAL, you can run the installation script manually via terminal. The script automatically detects common KOReader installation paths.
- Copy the project files to any location on your device.
- Enter the
binfolder in the project directory via SSH or terminal. - Run the installation script:
Alternatively, if you need to specify the KOReader installation path:
sh install.sh
export KO_DIR=/path/to/your/koreader sh install.sh
Once installed, while reading a document in KOReader:
- Long-press to select a piece of text.
- Click the Translate button in the popup menu.
- Translation results will be fetched and displayed via the custom API.
To restore KOReader's built-in translation functionality:
- Open KUAL -> KOReader Custom Translator.
- Click Restore.
- After the success message, restart KOReader.
Run the restore script in the bin directory:
sh restore.sh- File Overwrite: This plugin works by replacing KOReader's core file
frontend/ui/translator.lua. While there is a backup mechanism, this file will be overwritten by the official version after updating KOReader, and you will need to run the installation script again. - Network Connection: Ensure your device is connected to the internet and can access the custom translation API domain.
- KOReader crashes after installation:
- Possible version incompatibility. Try running Restore to revert to the original.
- Check
install.log(in the plugin directory) for detailed error messages.
- Translation shows "Network Error":
- Check Wi-Fi connection.
- Confirm if the API endpoint is online.
MIT License