All posts
Engineering 6 min read

How Idiomfarm protects your variables and placeholders

JR

Julian Reyes

Co-founder and CTO · December 9, 2025

The fastest way to turn a localization pass into a production incident is a dropped variable. A model rewrites a sentence, moves a token, and now a runtime interpolation fails or prints the literal text to a user.

So placeholder integrity is not a nice to have in Idiomfarm. It is a rule the engine cannot break.

Detect first

Before a string reaches the model, we scan it for the token shapes real codebases use, across formats:

{name}   {{count}}   %s   %1$s   %(user)s   %@   <b>...</b>   \n

Pin, then verify

Each detected token is passed to the model as a hard constraint, not a suggestion. After the model answers, we check the target text against the original tokens. If any token is missing, the string is not silently patched. It is flagged as needing a look, and the placeholders preserved field is set to false.

This is the same reason legal strings and names are never rewritten on their own. When we are not sure, we tell you, rather than shipping a confident guess.

Same format in, same format out

Because tokens survive, the file survives. JSON comes back as JSON with the same keys. YAML stays YAML. A CSV keeps its columns. You review, then ship, without a reformatting step in between.

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.