The engine, with the guardrails visible.
Context-aware localization is only possible because of modern language models, so the model is the point, not a badge on a rules engine. Here is what it does on every string, what it is prevented from doing, and where deterministic code takes over.
Four rules the engine holds
- It reads what each string is for before translating it.
- It pins placeholders, then verifies them after the fact.
- A missing token is flagged for a human, never patched.
- Every response is validated against a strict schema.
Read the job, translate in context, protect the tokens, flag the risk.
01
Understand each string's job
Before a word is translated, the engine reads what the string is for. It uses the key, the surrounding strings, the length, and the punctuation to decide whether it is a button, an error, a headline, a label, or body copy.
That job drives everything downstream. A button is kept short and active. An error stays calm and specific. A headline is written to land rather than to match word for word. The same English sentence can become different copy depending on where it lives.
02
Translate in context
With the job settled, the model localizes for meaning, idiom, tone, and register together. It applies the tone you picked, and in languages that grammaticalize a formal address it chooses the right form instead of guessing.
The result reads like a native product team wrote it, not like a dictionary was run over the source. Idioms are adapted to their nearest natural equivalent, and phrasing that would sound stiff or foreign to a local user is rewritten.
03
Protect variables
Every placeholder is detected and pinned before translation, then verified after. The model is told these tokens are opaque: it may move them to fit the target grammar, but it may not translate, rename, split, or drop them.
After each string comes back, the engine counts the tokens against the source. If one is missing or altered, the string is flagged for you with the exact token named. A missing placeholder is surfaced, never patched in silence.
Token shapes the engine detects and preserves
{name} named token (ICU, interpolation)
{{count}} double brace (Handlebars, Vue, i18next)
%s %d C-style / printf specifiers
%1$s positional printf (Java, gettext)
%@ Objective-C / iOS format specifier
<b> </b> inline HTML or markup tags
\n \t escape sequences and whitespace04
Adapt idiom and raise cultural flags
Formality, date and number formats, currency, units, and idioms are adapted to each market. Where a choice carries real risk, the engine does not decide quietly. It localizes, and it raises a flag.
A flag is a note to a reviewer, not an error. It points at the string, names the concern, and leaves the call to you. Dates and currency are the usual suspects, along with formality in languages where the wrong register reads as rude.
Routing, not loyalty to one lab.
Idiomfarm calls models through one thin provider layer with a fallback chain. Each job goes to the best available model for the language and the tone, and if a provider is slow or down, the next model in the chain takes over. Nothing in the product is tied to a single vendor, so you are never stuck with one lab's price, one lab's outage, or one lab's quality.
Routing
Work is sent to the model that handles the language and tone best, per request.
Fallback chain
Each provider has an ordered chain, so a slow or missing model degrades cleanly instead of failing.
Honest about state
If no provider is configured, the product says so on the status page instead of pretending to work.
Nothing reaches your screen unvalidated.
Every response the model returns is checked against a zod schema before anything is stored or shown. If the model returns something malformed, it gets one corrective retry with the validator's complaints. If that fails, you see an error, never a silently broken localization.
{
"key": "billing.trial_banner",
"source_text": "Your {days}-day trial ends today.",
"detected_job": "banner",
"placeholders": ["{days}"],
"targets": {
"de": {
"target_text": "Ihre {days}-tägige Testphase endet heute.",
"context_note": "Formal address (Sie). {days} kept as one token.",
"placeholders_preserved": true,
"flags": []
},
"ja": {
"target_text": "{days}日間の無料トライアルは本日終了します。",
"context_note": "No plural form needed. Counter 日間 used for days.",
"placeholders_preserved": true,
"flags": ["date-format"]
}
}
}target_textThe localized string for each language, with placeholders in place.
context_noteWhy the string reads the way it does: register, word choice, structure.
placeholders_preservedA boolean the engine sets only after counting tokens against the source.
flags[]Cultural concerns for a reviewer, such as date-format or formality.
Confidence is earned per string, not assumed.
Drafts a native reviewer approves
Idiomfarm returns strong drafts fast. For anything high stakes, a native reviewer should approve them before they ship. The workspace is built for that flow: every string is yours to edit, regenerate, or accept.
Placeholders and legal strings are never altered silently
A missing token is flagged, not patched. Sensitive strings are left for a human to confirm, with the change surfaced rather than buried in a diff.
Your content is private
Your strings are sent to a model provider only to produce your localization, under terms that exclude training on your content. Idiomfarm never trains models on customer data. Export or delete your projects any time.
See the workspace this produces on the product page, or run it on your own strings. See pricing
Ship in every language, like a native team wrote it.
Start free with 200 strings a month into two languages. No credit card. Your first localization runs in about a minute.