Logo
Intlfy
AI-Powered i18n

Translate JSON
locale files

Send your locale JSON, get back all your target languages in one request. Structure, keys, and interpolation patterns preserved.

Simple API

ONE request, ALL languages

Send your source JSON with a list of target languages. Get back every translation in a single response, with interpolation variables untouched.

  • Nested objects fully supported
  • Interpolation patterns protected ({{var}}, %{var})
  • Repeated content cached — pay 0.2% on reruns
POST /api/translate
{
  "content": {
    "welcome": "Hello, {{name}}!",
    "logout": "Sign out",
    "errors": {
      "required": "This field is required"
    }
  },
  "targetLanguages": ["pt-BR", "es", "fr"],
  "sourceLanguage": "en",
  "protectedPatterns": [
    { "begin": "{{", "end": "}}" }
  ]
}

Everything you need for i18n

A complete API for translating locale files at scale, with smart caching and flexible controls.

Smart Cache

Identical content translated once. Subsequent requests cost just 0.2% of the original — across all apps.

API Key Control

Create multiple keys per project. Activate or deactivate them instantly without affecting other keys.

Protect Variables

Define begin/end patterns to shield interpolation tokens like {{name}} or %{count} from AI translation.

Any Language

Translate to any target language in a single request. No per-language pricing, no language caps.

Metered Billing

Stripe-powered monthly invoicing. You only pay for what you actually process, down to the token.

JSON Native

Send raw locale JSON. Keys, nesting, arrays — all structure is preserved, only values are translated.

Live Demo

Try it now

Translate text or a JSON locale file directly in your browser. No sign-up needed.

36 / 10000 chars

Simple credit pricing

Buy credits upfront. Only what you use is deducted — nothing more.

New Translation
AI cost
based on tokens processed
  • Credits deducted per request
  • Content hash stored for future cache hits
  • Supports OpenAI & xAI providers
Best Value
Cache Lookup
0.2%
of original cost
  • Near-zero cost for repeated content
  • Same content across all your applications
  • No TTL — cache resets on each hit, expires after 30 days

Purchase credits via Stripe. No subscriptions, no monthly fees.

Frequent Questions

What is a cached translation?

When the same source content is translated, the result is stored with a content hash. Future requests with identical content in a translation POST cost only 0.2%, while direct Get-by-Hash lookups cost just 0.1% of the original price.

Which AI providers are supported?

We currently use OpenAI (gpt-5-nano) and xAI (grok-3-mini) as our backend infrastructure. The system automatically selects the most efficient model based on current availability. Please note that translation times may vary depending on the provider's response time and the size of your file.

Can I protect interpolation variables?

Yes. Use the protectedPatterns field to define token delimiters like {{ }} or %{ }. The AI will leave these tokens untouched during translation.

How am I billed?

You purchase credits upfront via Stripe. Each translation request deducts credits from your balance based on actual AI token usage. Cached content costs only 0.2% of the original. No subscriptions or monthly fees.

Are nested JSON objects supported?

Yes. The API recursively translates all string values while preserving the exact structure, key names, and ordering of your locale files.