XPTranslateText is an open-source Xposed module that automatically translates text inside Android apps using a layered approach: local caching, Google’s ML Kit for on-device translation, Gemini 2.0 API, and Google’s free translation API.
It is designed for rooted devices running LSPosed or similar frameworks, and works on Android 13 through 15.

Table of Contents
What is XPTranslateText?
XPTranslateText is a translation module for the Xposed Framework. It hooks into apps to intercept text and translate it in real time. The goal is to make apps more usable across languages without requiring developers to add translation features themselves.
Key Features
- Local-first pipeline: Translations start with cached results, then use on-device ML Kit, followed by Gemini API, and finally Google’s free API if needed.
- Reduced UI lag: Supports
android.text.StaticLayout$Builderto replace text synchronously, minimizing interface delays. - Flexible setup: Works with LSPosed or other Xposed variants.
- Compatibility: Confirmed to run on Android 13 and Android 15.
How It Works
The translation process follows a step-by-step fallback system:
- Local Cache – Previously translated text is reused instantly.
- On-device ML Kit – Google’s ML Kit handles translations without needing internet.
- Gemini 2.0 API – Cloud-based AI translation for more complex text.
- Google Free API – Final fallback for general translations.
This layered approach balances speed, accuracy, and resource use.
Installation Guide
To use XPTranslateText:
Prerequisites:
- Rooted Android device.
- LSPosed or another Xposed-compatible framework installed.
- Internet connection (for Gemini and Google API).
Steps:
- Download the APK from the GitHub repository.
- Install it on your device.
- Enable the module in LSPosed.
- Restart your device to activate.
Benefits
- Automatic translation inside apps without developer support.
- Local-first design reduces dependency on cloud services.
- Smooth user experience with minimized UI delays.
- Open-source project with community contributions.
Limitations and Risks
- Root access required: This limits use to advanced users.
- Potential app conflicts: As with any Xposed module, stability issues may occur.
- Privacy considerations: Cloud-based translation (Gemini/Google API) means text may be sent to external servers.
- Not official Google software: It is a community project, so support is limited.
Conclusion
XPTranslateText is a powerful tool for multilingual Android users who want seamless translations inside apps. By combining local ML Kit processing with Gemini and Google APIs, it offers a flexible and efficient solution.
However, it is best suited for experienced users with rooted devices who are comfortable with Xposed modules.