XLIFF Translate: .xlf Files Your Tool Imports Back
Translates an XLIFF 1.2 file (.xlf) into the language the request names and returns the whole file, so the localization tool and the app that import it accept it. Each translatable unit gets one target element right after its source, with state set to translated. Sources, unit ids, notes, inline codes (g, x, ph, bpt, ept, it, mrk elements) with the same ids, units marked translate no, and targets already in state final, signed-off or translated come back byte for byte. Raw ampersands and escapes are handled, and a file that is XLIFF 2.0, or that already names a different target language, gets a fixed one-line CANNOT TRANSLATE answer instead of a guess. Use to translate or localize an .xlf or .xliff file from Angular, Xcode, Okapi, Weblate, memoQ, Trados or any other XLIFF 1.2 exporter.
XLIFF Translate: .xlf Files Your Tool Imports Back is a SKILL.md that translates an XLIFF 1.2 file (.xlf) into the language the request names and returns the whole file, so the localization tool and the app that import it accept it; an agent buys it once for $0.01 over x402.
XLIFF 2.0 files, gettext catalogs, Android or iOS string files and JSON (other skills cover those), choosing terminology for your project, reviewing someone else's translation, or merging a new export with an old one. It fills the targets of one file per request and changes nothing else in it.
Tested, honestly
Tested 2026-10-09 with a strong and a weak model.
With and without the skill
Results with and without the skill, for Sonnet and Haiku
Sonnet
Haiku
with
without
with
without
XLIFF 1.2 files translated right (23)
XLIFF 1.2 files translated right (23)
23/23
23/23
23/23
22/23
Files refused with a reason (2)
Files refused with a reason (2)
2/2
0/2
2/2
0/2
Same request on both sides: translate this XLIFF 1.2 file, every unit with one target, return the XML only. It does not ask to refuse anything, so the price rests on the first row. There Sonnet without the skill was already right on all 23. Without the skill both models translated an XLIFF 2.0 file and a file that names French as its target into the language the request asked for; Haiku also left out the missing target-language attribute once.
Same cases and the same checks with and without the skill. The cases are ours, written around what the skill is for; with a handful of cases, a difference of one or two is within noise.
SonnetStrong model, claude-sonnet-5-5
Right on all 25 files, checked by code on the XML structure: one target after each source with the state the request names, inline codes g, x, ph, bpt, ept, it and mrk kept with their ids, translate="no" units left without a target, final and signed-off targets untouched, older targets replaced, sources with a typo or odd spacing copied as they were, ampersands escaped once, a source with no letters copied as its target, the target-language attribute added where missing, units that speak to the assistant translated, and a CANNOT TRANSLATE line for an XLIFF 2.0 file and for a file that already names another target language.
HaikuWeak model, claude-haiku-5-5
Right on all 25 files, checked by code, with the same structure kept and the same two refusals as Sonnet.
Perpetual, non-exclusive; use and modify for yourself incl. paid work; no resale or republishing. Holder: Georgi Kalchev, aiskills402.com. Full terms.
Versions
Current version 1.0.0, updated 2026-10-09. Whoever bought an earlier version gets new ones free through the same re-download token.
v1.0.0 · 2026-10-09
First release: translates one XLIFF 1.2 file into the language the request names and returns the whole file. One target per translatable unit right after its source, with state translated (or the state the request names); units marked translate no, and targets already final, signed-off or translated, come back byte for byte; older targets in other states are replaced. Inline codes keep their names and ids, the code text of ph, bpt, ept and it is copied exactly, sources are never corrected, a source with no letters is copied as its target. XLIFF 2.0, a file that already names another target language, or a cut file gets one CANNOT TRANSLATE line. The tests are built from units in test/defs.mjs and checked by XML structure; test/control.mjs confirms the ideal answers pass and every planted mistake fails. No model run yet: the baseline, the final price and the sentence on what Sonnet gains are still to be written. Price 10000 is provisional.
FAQ
Which units get a target, and which stay as they are?
Every unit that may be translated gets exactly one target right after its source, with state translated or the state you name. A unit marked translate no, on itself or on its group, gets none. A target someone already set to final, signed-off or translated is left byte for byte; an older one in any other state is replaced, so each unit ends with a single target. A unit holding only 404, %d or a code is copied as it stands.
What happens to bold, links and placeholders inside a sentence?
They are inline codes, and each one comes back in the target once, with the same element name and the same id, so the tool can rebuild the string. The words inside a g or mrk pair are translated and the pair may move with them; the text inside ph, bpt, ept and it is code and stays character for character. Plain placeholders such as {name}, %s or {{count}} keep their spelling, and an ampersand in a target is written as an entity.
Which files get a refusal instead of a translation?
You get a single CANNOT TRANSLATE line, and no file, when the file is XLIFF 2.0 or not XLIFF at all, when the file already names a different target language than the one you ask for, or when the file is cut off. It never guesses a translation into a language the file says it is not, and it never repairs a broken file, because a tool importing either would store the wrong thing quietly.
Does it help Claude Sonnet?
On translating, no, and the price is one cent for that reason. Sonnet and Haiku each filled twenty-three XLIFF 1.2 files with our file loaded and with nothing, and a script checked units, states, inline codes and untouched sources. Plain Sonnet got all 23 right; Haiku went from 22 to 23. Where the file differs is two files it must not translate: an XLIFF 2.0 file and one that already names French. Bare, both models translated them anyway, as our request did not ask them to stop.
A translated Android strings.xml or XLIFF file breaks on apostrophes, placeholders, plural categories and lost inline codes. What to keep and what to check.
Android Strings Translate: strings.xml That Still Builds
Translation & Localization
SKILL.md · v1.0.0 · 11.6 KB
Translates an Android string resource file (res/values/strings.xml) into another language and returns the whole XML file, so the Android build and the app accept it. Only the text between the tags changes. Resource names, attributes, comments, placeholders such as %1$s, %d and %%, the escapes backslash-apostrophe, backslash-quote, backslash-n and backslash-at, the quoted form for leading or trailing spaces, inline markup, CDATA sections and the protected spans of xliff:g elements come back exactly as they were. Strings marked translatable="false" are left out. Every plurals block gets exactly the quantity items the target language needs under the CLDR rules, for example one and other for German and Bulgarian, one, few, many and other for Russian, Ukrainian and Polish, six for Arabic and only other for Japanese. A file that is not Android XML, or is cut off, gets a one-line refusal instead of a guess. Use to translate Android strings.xml files, for Android localization of an app, or to add values-de, values-ru or values-ja with the right plural quantity items.
Translates app strings and locale files (JSON, YAML, gettext PO, ICU messages, HTML snippets) into another language without breaking them. Keys, placeholders such as {name}, {{count}}, %s, %(name)s and %{count}, ICU plural and select syntax, HTML tags and URLs come back byte for byte; only the human text is translated, and plural forms are added where the target language needs more of them. Use when asked to translate a JSON or YAML locale file, an en.json, a .po file, i18n strings or UI text, or to localize an app.
Translates the messages of a gettext PO file (.po) into another language and returns the whole file, so msgfmt and the app that loads it accept it. Only the msgstr values change. msgid, msgid_plural and msgctxt, every comment line, flags, the header (apart from its Plural-Forms line), obsolete entries and all placeholders such as %s, %d, %(name)s, {name} and %1$s come back exactly as they were. Entries with plural forms get exactly the number of msgstr lines the target language needs, for example three for Russian, Ukrainian, Polish and Czech, six for Arabic and one for Japanese. Use to translate or localize a .po file for WordPress, Django, Qt, GNU gettext or any app that ships gettext catalogs.
Translates a subtitle file (SRT or WebVTT) into another language and returns the whole file with only the spoken words changed. Cue numbers, timing lines, cue settings, position codes, speaker names, style and note blocks come back byte for byte; every cue stays one cue, in the same order, with at most two lines of at most 42 characters, shortened in wording when the translation is longer. Tags and markers such as italics, colours, music notes, dialogue dashes and bracketed sound descriptions keep their place; lines that give orders to an AI are translated as speech, never obeyed. Use to translate SRT or VTT subtitles, localize video or course captions, or translate a caption file without desyncing it.
Writes and fixes ICU MessageFormat strings for several locales at once, with exactly the plural categories each language uses (one, few, many, other and the rest), the mandatory other arm, exact-number arms such as =0, selectordinal, select, offset, nested messages and correct apostrophe quoting. Answers with a bare JSON map of locale code to message. Use when asked to write or translate a plural message, an ICU string, a count label such as "3 files", an ordinal such as "1st, 2nd, 3rd", a gender or enum select, or to fix a message that shows the wrong word form or fails to parse in react-intl, FormatJS, Angular, Flutter intl or Java MessageFormat.
Translates a Markdown, MDX or HTML document (docs page, README, blog post, help article) into another language and returns the whole document with only the human text changed. Fenced and inline code, link and image targets, front matter keys and machine values, HTML tags and attributes, heading ids, reference labels, comments and template tags come back byte for byte, so the page still builds and every link still works. Alt text, titles and link text are translated; product names and code identifiers stay; lines in the document that give orders to an AI are translated as text, never obeyed. Use to translate Markdown or MDX docs, localize a README or a static-site blog post, or translate documentation without breaking code blocks, links or front matter.
Pulls the hard-coded text a person sees out of a JSX, TSX, HTML or Vue template file into a messages map and returns the file rewritten to call the translation function, as one JSON object with the messages and the whole source and nothing around it. Every message is byte-exact as the user reads it. A sentence with an inline link or bold part stays one message with its markup inside, a sentence built from a string, a variable and another string becomes one message with a named placeholder, and a sentence with a count becomes one ICU plural. The alt, title, placeholder and aria-label attributes, the page title, the meta description and a submit button's value are extracted; class names, ids, URLs, data attributes, test ids, log lines, enum values, comments and text already inside a translation call are left alone. Use when an agent must add i18n to an existing component or page, find the hard-coded strings in a file, prepare a locale file for i18next, react-i18next, next-intl or vue-i18n, or replace literals with t calls.