Localize your Android app with strings.xml
Bring the strings.xml files you already have. Your coding agent adds new keys as it builds features, Glotra machine-translates them, and someone on your team approves them before release.
Bring your existing files
Drop your values/strings.xml and values-{lang}/strings.xml files into a project. Glotra reads the language from each filename or folder, matches keys across languages and tags them in one pass. Your iOS and web files can go into the same project.
Plurals the way Android expects them
Plural forms are stored per language: one, few, many, other and any others a language needs. On export they come back as <plurals> elements, so getQuantityString picks the right form.
Keys that only ship to Android
Every key records the platforms it belongs to. An Android export contains only the keys marked for Android, so an iOS-only string never ends up in your resources.
Get the files back into your project
| Delivery | What you get | Plans |
|---|---|---|
| Download | A zip with values/ and values-{lang}/strings.xml | Every plan |
| GitHub sync | Translation pull requests to app/src/main/res/values-{lang}/strings.xml, or the path you choose | Growth and Advanced |
| Over the air | JSON from the export endpoint, so a copy change ships without a new build | Every plan |
Load strings at runtime
Any JSON parser works. This one uses Gson over a plain HttpURLConnection.
data class Export(val languages: Map<String, Language>)
data class Language(
val simple: Map<String, String>,
val plural: Map<String, Map<String, String>>,
)
suspend fun fetchStrings(apiKey: String): Export = withContext(Dispatchers.IO) {
val url = URL("https://api.glotra.app/sdk/export?platform=android")
val conn = (url.openConnection() as HttpURLConnection).apply {
setRequestProperty("X-API-Key", apiKey)
}
conn.inputStream.bufferedReader().use { reader ->
Gson().fromJson(reader, Export::class.java)
}
}Use a read-only project API key. The full reference is in the Android docs.
Let your agent add the strings
Connect Claude Code, Cursor or VS Code Copilot to Glotra over MCP, then ask for the work in plain words:
Find the hardcoded user-facing strings in the checkout screens, add
them to my Glotra project as keys, and replace them with string
resources. Then tell me which translations need review.The agent writes the base language and Glotra fills in the rest. No tool can approve a translation, so a person signs off under Needs review in the dashboard.
Questions
No. The language is read from the filename or the folder around it, so values-fr/strings.xml and android_fr.xml both land in the right place. Anything Glotra can't recognise is reported rather than silently dropped.
Yes. Plural forms are stored per language and exported as plurals elements in strings.xml, with the forms each language needs.
About 30, per key. Machine translation is optional in the dashboard and on by default when an agent adds a key over MCP. Either way, the text is flagged for human review.
It can. Flagged text is included in exports and over-the-air delivery, so a review backlog never breaks a build. Clear the Needs review list before you release if you want every string checked.