Translate your app's localization files on every push. Drop in a GitHub Action, point it at your translation files, and get pull-ready translations in seconds — not days.
- uses: i18n-actions/ai-i18n@v0.5
with:
provider: anthropic
api-key: ${{ secrets.ANTHROPIC_API_KEY }}
target-languages: de,fr,es,ja
files: 'src/locales/**/*.xliff'- Multiple providers — Anthropic Claude, OpenAI, or self-hosted Ollama
- XLIFF + JSON — XLIFF 1.2/2.0 with full inline element preservation, flat and nested JSON
- Smart diffing — content hashing ensures only new/modified strings hit the API
- ICU-aware — CLDR plural rules for 20+ languages, auto-generates correct plural forms
- Placeholder safe —
<x id="PH"/>,{{variables}}, and ICU patterns survive the round-trip - Zero config — auto-detects file format, batches requests, handles rate limits and retries
See the full docs and configuration reference in ai-i18n.