Droidlate
Droidlate is a lightweight, local, web-based translation workspace for Android strings.xml resource files. It features a clean, responsive, Weblate-inspired Single Page Application (SPA) designed to make translating Android applications fast, accurate, and resilient.
Core Usecases
- Local Offline Workspace: Translate and edit local localization files on your machine. Avoid uploading sensitive resource files to third-party servers or setting up heavy server-side infrastructure.
- Preserving XML Formatting & Comments: Standard XML parsers rewrite files, wiping out comments, custom spacing, ordering, and attributes. Droidlate's custom parsing engine performs in-place character index replacements to maintain exact XML styling, comments, structure, and formatting.
- Plurals & String-Arrays Support: Seamlessly edit standard
<string>elements,<plurals>(supporting quantity qualifiers likeone,other, etc.), and ordered<string-array>lists within the same unified workspace. - Tracking Outdated Translations: When developers update a base string in
values/strings.xml, translations can become outdated. Droidlate normalizes and hashes base strings into a lightweight local sidecar metadata file, highlighting which target translations need updates. - Placeholder Verification & QA: Mismatched Java-style placeholders (e.g.,
%s,%1$din the source but% dor missing in the target) cause runtime crashes on Android. Droidlate validates alignment on every keystroke and flags warnings. - Orphaned String Pruning: Over time, strings are deleted from the main codebase but linger in translation files. Droidlate lists these "orphaned" strings and lets you prune them with a single click.
Key Features
- Interactive Language Creation: Add and initialize new target locales (e.g.,
es,fr,zh-rCN) directly from the dashboard UI without manual directory setup. - Local Translation Memory (TM): Indexes your existing translations locally to suggest exact and partial completions offline, facilitating consistent phrasing across your codebase.
- Translatable Flags & Read-Only View: Respects
translatable="false"base flags. Non-translatable strings are isolated under a read-only filter tab and auto-pruned from target XML files. - Automatic Update Checker: Periodically checks PyPI in the background (cached for 24 hours) and alerts you in the web UI and CLI if a new release is available.
- Sleek UI with Dark Mode: A modern HSL-tailored interface featuring layout toggles (especially optimized for mobile web layouts), status indicators, and translation statistics.
- Keyboard Shortcuts: Built for productivity. Use
Ctrl+Sto instantly Save & Next, andAlt+1/Alt+2to paste dynamic suggestions. - Auto-Translation Suggestions: Integrates with translation suggestion services (like Google Translate and MyMemory) to suggest translations on the fly.
- Atomicity & Crash Resilience: Local updates are written to the target XML file first, then metadata sidecars second. If interrupted, the app automatically flags the key as
Outdatedon the next run, ensuring no state corruption. - Secure Server Binding: The local Flask server strictly binds to the loopback interface (
127.0.0.1), ensuring your filesystem is safe from external network access.
Installation
The recommended way to install Droidlate is globally using pipx:
pipx install droidlate
Alternatively, you can install it using standard pip:
pip install droidlate
Local Development
If you want to run it from source or install in editable mode:
# Clone the repository and install dependencies
git clone https://github.com/estiaksoyeb/Droidlate.git
cd Droidlate
pip install -e .
Usage & CLI Commands
Once installed, you can launch the Droidlate workspace using the droidlate CLI command:
1. Auto-Scan Mode (Default)
Run the command in your Android project root (or near your resources). Droidlate will auto-detect typical folders like app/src/main/res/, src/main/res/, or res/:
droidlate
2. Specify Resource Directory
You can explicitly define where the Android resource directory is located:
droidlate --res-dir /path/to/android/app/src/main/res
3. Single-File Mode
To translate or edit a single pair of strings files directly:
droidlate --source app/src/main/res/values/strings.xml --target app/src/main/res/values-es/strings.xml
4. Custom Port
Run the local web server on a different port:
droidlate --port 8080
Repository Structure
├── droidlate/ # 🐍 Python Core (CLI & Web Engine)
│ ├── parser/
│ │ ├── xml_parser.py # Expat character-level round-trip parser
│ │ └── diff_engine.py # Hashing, validation, and status engines
│ ├── translator/
│ │ └── engine.py # Translation Orchestrator
│ ├── web/
│ │ ├── server.py # Flask server and local REST APIs
│ │ └── static/ # Single Page Web App (HTML, CSS, JS)
│ ├── cli_wizard.py # CLI console loop wizard
│ └── main.py # Command entry point
├── app/ # 📱 Native Android App (Jetpack Compose)
│ ├── src/main/kotlin/ # Kotlin Compose UI & ViewModels
│ ├── src/main/res/ # Android resource files
│ └── build.gradle.kts # Chaquopy embeds ./droidlate directly
├── docs/ # Architecture, specs & setup guides
├── pyproject.toml # Package configuration (publishes ONLY droidlate/ to PyPI)
├── requirements.txt # Python app dependencies
└── README.md # This documentation
📱 Native Android App
In addition to the Python CLI & Web interface, Droidlate includes a native Android application built with Jetpack Compose and embedded Python via Chaquopy.
- Build APK:
./gradlew assembleDebug(or./gradlew assembleRelease) - Import from GitHub: Paste any public Android repo URL (e.g.
estiaksoyeb/TypeAssist) to download, scan, and translate offline. - Sync Upstream: Pull latest upstream strings while 100% preserving existing translations and metadata.
- Export ZIP: One-tap export of modified translation resources and metadata ledger via Android ShareSheet.
🏷️ Release Tagging Scheme
To keep Android App APK releases and PyPI Python Package releases decoupled:
| Target | Tag Format | GitHub Action Triggered |
|---|---|---|
| Python CLI (PyPI Package) | v1.0.0 (or cli-v1.0.0) |
Builds wheel/sdist & publishes to PyPI |
| Android App (APK Release) | app-v1.0.0 |
Builds Release APK & drafts GitHub Release |
👨💻 Author
Developed and maintained by Istiak Ahmmed Soyeb (@estiaksoyeb).
Credits
- Droidlate's auto-translation suggestions feature was inspired by Android strings.xml Translator.
License
This project is licensed under the GNU General Public License v3.0 (GPL-3.0). See LICENSE for details.
Release files for droidlate 1.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| droidlate-1.3.0.tar.gz | 60.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| droidlate-1.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 120.3 kB
Release files / droidlate-1.3.0.tar.gz
| Download URL | droidlate-1.3.0.tar.gz |
|---|---|
| Size | 60.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eb72ba7fe8ec3542abe672e87705990897eed085c4d86c18700f6076ebdea86d
|
|
BLAKE2b-256 checksum How to use checksums |
3bef58673ea4987ccd48ca08085b48d4e29c1bc850ec20e41ff224290efba38c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 31, 2026.
Transparency logRelease files / droidlate-1.3.0-py3-none-any.whl
| Download URL | droidlate-1.3.0-py3-none-any.whl |
|---|---|
| Size | 59.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
45468a3e3154301bc62bf8532fa60814e73b1761e16b0dfbc95306142e81632e
|
|
BLAKE2b-256 checksum How to use checksums |
618b58daff6f6f1938931df9c4e375eada54bc7032be6da1a5c70b48396100f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 31, 2026.
Transparency log