i18n File Translator - JSON, YAML, PO, Strings & Android XML avatar

i18n File Translator - JSON, YAML, PO, Strings & Android XML

Pricing

from $1.20 / 1,000 1,000 source characters

Go to Apify Store
i18n File Translator - JSON, YAML, PO, Strings & Android XML

i18n File Translator - JSON, YAML, PO, Strings & Android XML

Translate app localization files: JSON (i18next, ARB), YAML (Rails), gettext .po, iOS .strings and Android strings.xml. Keys, placeholders and HTML tags kept; same file format back plus a list of strings left untranslated. $1.50 per 1M characters.

Pricing

from $1.20 / 1,000 1,000 source characters

Rating

0.0

(0)

Developer

Yukai Lin

Yukai Lin

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

13 days ago

Last modified

Features

Limited permissions

Share

What does i18n File Translator do?

Translate your app's localization files and get the same file back, ready to drop into your project. Give links to (or paste) resource files and choose one or more languages. Only the text values are translated. Keys, structure, comments and placeholders are kept, and every string that could not be translated safely is listed.

  • 📁 Formats: JSON (i18next, react-intl, vue-i18n, Flutter .arb, nested or flat), YAML (Rails, Symfony), gettext .po / .pot, Apple .strings (UTF-8 or UTF-16) and Android strings.xml (<string>, <string-array>, <plurals>).
  • 🔒 Placeholders are checked: %s, %1$s, %d, %@, {name}, {{name}}, %{name}, %(name)s, ICU {count, plural, ...}, $t(key), HTML tags, react-i18next <1>…</1>, Android <xliff:g> and links. When the AI changes one, the string is translated once more. If it is still wrong, the original string is kept and listed under untranslated: your file never ships a broken placeholder.
  • 🧾 Only values change. JSON, PO, .strings and XML files are edited in place: key order, indentation, comments, line endings and untranslated values stay byte for byte. YAML keeps its comments and order.
  • 🌍 Locale follows the target: a Rails root key en: becomes es:, ARB @@locale and the PO Language: header are updated.
  • 💸 $1.50 per 1 million characters of text written translated. Links, placeholders-only values, broken placeholders, repeats within a file and failed files are free.

How to use it

  1. Put links in Resource file links (raw files, or GitHub / GitLab file pages), or paste one file into Or paste one file.
  2. Set Target language (a name such as Spanish or a code such as pt-BR) and, optionally, More target languages.
  3. Add your app and brand names to Glossary so they are never translated.
  4. Run. Download each translated file from the translatedFileUrl column (it is also in the run's key-value store), and check the untranslated list.

Android: save the result as res/values-<locale>/strings.xml (for example values-es). Strings marked translatable="false" are not sent.

Input example

{
"fileUrls": [
"https://raw.githubusercontent.com/rails/rails/main/activemodel/lib/active_model/locale/en.yml",
"https://github.com/android/sunflower/blob/main/app/src/main/res/values/strings.xml"
],
"targetLanguage": "Spanish",
"targetLanguages": ["Japanese"],
"glossary": ["Sunflower"]
}
FieldMeaning
fileUrlsLinks to resource files, up to 100 per run (a pasted file counts as one) and 5 MB each. GitHub and GitLab file page links are read as the raw file.
fileContent, fileNameOr paste one file, up to 5 MB. The name (e.g. strings.xml, en.yml) tells the format and names the result.
targetLanguage, targetLanguagesUp to 20 languages in one run. Each file is read once; each language is billed separately. A name and its code in any case (Spanish, es, ES; Brazilian Portuguese, pt-BR, PT-BR, Pt-br) count as one language.
formatauto (default: from the file extension, then the content), json, yaml, po, strings or android-xml.
glossaryTerms to keep exactly as written, up to 200.
toneneutral (default), formal, casual, marketing or technical.
sourceLanguageLanguage of the original strings. Empty = detected automatically.
enginefast (default) or quality. Same price.
maxConcurrencyFiles translated at the same time, 1-10 (default 3).

Output example

One row per file and target language:

{
"inputIndex": 0,
"sourceUrl": "https://raw.githubusercontent.com/rails/rails/main/activemodel/lib/active_model/locale/en.yml",
"fileName": "en.yml",
"format": "yaml",
"targetLanguage": "Spanish",
"targetLocale": "es",
"success": true,
"strings": 27,
"stringsTranslated": 27,
"stringsKept": 1,
"untranslatedCount": 0,
"untranslated": [],
"sourceCharacters": 687,
"translatedFileUrl": "https://api.apify.com/v2/key-value-stores/STORE_ID/records/en-es.yml",
"translatedFileKey": "en-es.yml",
"translatedFile": "es:\n errors:\n # The default format to use in full error messages.\n format: \"%{attribute} %{message}\"\n ...",
"localeChange": { "field": "root key", "from": "en", "to": "es" },
"engine": "fast",
"charged": true,
"errorType": null,
"error": null,
"translatedAt": "2026-11-06T12:00:00.000Z"
}

A string kept in the source language appears in untranslated, for example { "key": "count", "reason": "placeholder_changed", "issues": [{ "kind": "printf", "missing": ["%d"], "extra": [] }] }.

FieldMeaning
inputIndex, sourceUrl, fileNameWhich file the row belongs to.
format, targetLanguage, targetLocaleFormat read, the language asked for and its locale code (null when unknown).
strings, stringsTranslatedValues with text, and how many of them were written translated.
stringsKeptValues kept as they are without being sent: links, e-mail addresses, placeholders only, Android references and translatable="false".
untranslatedCount, untranslatedStrings left in the source language (at most 500 listed): key, reason (placeholder_changed, translation_failed, rewritten or too_long) and, for placeholders, issues.
sourceCharactersCharacters billed for this row (each different string once).
translatedFileUrl, translatedFileKey, translatedFileLink to the translated file, its key in the key-value store, and its content (up to 100,000 characters).
localeChangeThe locale field that was changed (Rails root key, ARB @@locale, PO Language: header), or null.
success, charged, errorType, errorThe file was written / this row was charged / why a row is free.

Free rows use these errorType values: invalid_input (not a web address, a link with a broken % escape, not a language name, more than 100 files, a pasted file over 5 MB; these rows have input with the field and position, never the value you typed), not_found, blocked (the host refused), too_large (over 5 MB or over 20,000 different strings), download_failed, timeout, unsupported (a web page instead of a file, or a format that cannot be detected), invalid_file (the file is not valid JSON / YAML / PO / .strings / Android XML, with the line when known), no_text (only links or placeholders), not_translated (every string kept because placeholders changed), translation_failed, save_failed and limit_reached (your maximum charge per run was reached).

The SUMMARY record has status, files, filesTranslated, failed, targetLanguages, strings, stringsTranslated, untranslated, placeholderRetries, sourceCharactersBilled, unitsCharged, invalidInputs, duplicatesSkipped and costPlan (with inputNotes, resumed and notProcessed when they apply).

Pricing

$1.50 per 1,000,000 characters ($0.0015 per 1,000) of source strings written translated, with the usual Apify plan discounts. Characters are added up over the run, so many short strings cost what their total length costs.

  • Free: values kept as they are, strings left untranslated, a string repeated within a file after the first time, and every failed file or input above.
  • Each target language is billed separately. A run stops before a file that would pass your maximum charge per run (free limit_reached row).

Examples: the Rails activemodel English file (687 characters) into Spanish = 1 unit, $0.0015. A 5,000-word app (about 30,000 characters) into 10 languages = about $0.45.

Limitations

  • Machine translation (Llama models on Cloudflare Workers AI). Review texts that matter, such as legal and payment screens. Short UI labels have no context, so the AI may choose a different word than your team would; use the glossary for fixed terms.
  • Plural forms are not added. A PO file keeps its msgstr[n] entries and Plural-Forms header, and Android keeps its <item quantity> list. Languages with more plural forms (Polish, Russian, Arabic) need the extra forms added by hand. ICU messages may add or drop plural categories.
  • .stringsdict, XLIFF, .resx, .properties, CSV and spreadsheets are not supported yet. YAML files are written back with normalized spacing, and multi-document YAML is not read.
  • Existing PO translations are replaced: every entry is translated from its msgid.
  • Up to 100 files per run (links plus the pasted file), 5 MB and 20,000 different strings per file, 8,000 characters per string.

FAQ

Are my keys or placeholders ever translated? Keys never are. Placeholders and tags are compared after translation; a string where they changed is kept in the source language and listed.

Why is a string under untranslated? The reason says why: placeholder_changed (with the tokens that were lost or added), translation_failed, rewritten (the AI wrote new copy instead of a translation) or too_long. Those strings are free.

Can I translate private repositories? Paste the file into Or paste one file, or use a link that does not need a login.

Can AI agents call it? Yes: the input is plain JSON, and each row has a link to the translated file and the list of strings to review.