A high-performance dynamic plugin for the LeanType Keyboard enabling real-time Google Web Translation and On-Device Offline ML Kit Translation.
- 🌐 Google Web Translation: Instant, multi-language web translation powered by Google endpoints with automatic language detection and fallback.
- 🛡️ On-Device Offline Translation (ML Kit): Zero-network on-device neural translation using lightweight (~30 MB) language models.
- 📦 On-Demand Model Management: Download, manage, and delete 59+ language models directly from LeanType settings.
- 🔄 Universal Compatibility: Fully supported across all 4 LeanType flavors (
Standard,Standard Full,Offline, andOffline Lite). - 🔌 Dynamic Isolated Loading: Loaded dynamically via
PluginClassLoaderwith isolated native libraries and zero runtime footprint when inactive.
Note
Do not install this APK directly into Android OS as a standard app. It is a dynamic plugin library loaded internally by LeanType.
LeanType loads this plugin dynamically at runtime when translation is invoked. The plugin adheres to LeanType Translation Interface v2, providing synchronous and asynchronous translation bridges, model availability checks, and lifecycle management.
- In LeanType, open Settings → Translation (or Settings → Plugins).
- Tap Download Plugin to automatically fetch and verify the latest release APK.
- Tap Offline Translation Models to download desired on-device language packs.
- Download
translation_plugin.apkfrom the Latest Releases. - In LeanType, open Settings → Translation (or Settings → Plugins).
- Tap Load translation plugin and select the
.apkfile. - Tap Offline Translation Models to download language models via browser or import models.
Build the signed release APK with Gradle:
./gradlew :app:assembleReleaseThe output APK will be generated at:
app/build/outputs/apk/release/translation_plugin.apk
Licensed under the GNU General Public License v3.0.