AI XML Translator
Translate the text of XML files, Android strings.xml and .resx resources with AI. Tags, attributes and structure stay the same.
Input
Protected by Cloudflare Turnstile
Output
Readme
Tool description
This tool translates the text inside XML files with AI. It works with Android strings.xml resources, .NET .resx files, and any other XML where people read the text between the tags. Open an XML file, pick the language, and you get the same XML with translated text.
The file is parsed in your browser. Only text nodes are sent for translation, together with their element path (for Android, the string name, such as resources/string[app_name]). Tags, attributes, comments and processing instructions are not changed, and the XML declaration is kept.
Features
- Translates text and CDATA content of every element.
- Keeps element names, attributes, namespaces and comments.
- Skips Android strings marked
translatable="false", and the header and schema of.resxfiles. - Supports Android
<string>,<string-array>and<plurals>resources. - Keeps placeholders such as
%s,%1$dand{0}, and escaped apostrophes like\'. - Reports the position of XML syntax errors before anything is translated.
Examples
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name" translatable="false">Notely</string>
<string name="welcome">Welcome back, %1$s!</string>
<plurals name="notes">
<item quantity="one">%d note</item>
<item quantity="other">%d notes</item>
</plurals>
</resources>translated into Spanish, keeps app_name and gives:
<string name="welcome">¡Bienvenido de nuevo, %1$s!</string>
<item quantity="one">%d nota</item>
<item quantity="other">%d notas</item>Tips
Languages have different plural rules. Android only uses the quantity values that the target language needs, so check the <plurals> blocks and add or remove <item> elements if needed.
Up to 10,000 characters of text can be translated at once.
FAQ
Can I translate XLIFF files?
XLIFF keeps the source and the translation in separate <source> and <target> elements, which this tool does not fill in. It translates the text where it is.
Is my file uploaded? No. The XML is parsed in your browser, and only the text and the element paths are sent to the AI.