More than a pipe to an AI model

You could send your strings to an AI model yourself, and plenty of teams start there. This page covers what Langsys does between your app and the model, so translations come back right, stay consistent and are paid for once.

One phrase passing through several stations before it reaches each language One phrase passing through several stations before it reaches each language

The do-it-yourself version

A first version takes an afternoon:

for (const phrase of phrases) {
  translations[phrase] = await ai(`Translate into German: ${phrase}`);
}

It works on a demo. In a real app it runs into problems like these:

No context
“Home” in a menu and “Home” in “Home repairs” are different words in most languages. A lone string doesn't say which one it is.
Broken sentences
A sentence split around a link or bold text arrives as fragments. Translated one by one, the grammar falls apart.
Counts
A count like “3 messages” takes three different forms in Russian and six in Arabic. One translated string can't hold them.
Placeholders and tags
Models translate, move or drop placeholders and HTML tags, and the page breaks for the people reading it.
Paying again
Every run sends the same sentences again. Fix one word on a long page and you pay for the whole page.
Regions
Costa Rican Spanish isn't the Spanish of Spain, and Canadian French isn't the French of France. A cache keyed by language mixes them up.
Failures
A provider times out halfway through a batch, or a model returns half an answer. The script stops, or ships what it got.

Same phrase, two ways

The loop above

We sent this phrase to a general-purpose AI model with the loop's prompt, asking for Arabic. Instead of one string, it returned an explanation. This is what the loop would store as the translation:

'{count} projects'
In Arabic, the correct translation depends on whether you need a single general phrase (common in user interfaces) or full grammatical accuracy based on the number.

### 1. Standard UI translation (Most common)
If your system does not support complex pluralization:
> **`{count} مشروع`**

---

### 2. Grammatically correct (ICU / Pluralized localization)
Arabic changes the noun depending on the value of `{count}`:
…

Run it again and the reply changes, and so does the string it suggests. Your code would still have to pull out a string, turn the forms into a message your app can use, and check it.

Langsys

The same phrase is on our pricing page. In this site's own Langsys project, its Arabic is one message with all six forms, and the app picks the right one for each number.

{$t('{count} projects', 'Pricing', { count })}
العربية
  • 0 0 مشاريع
  • 1 مشروع واحد
  • 2 مشروعان
  • 3 3 مشاريع
  • 11 11 مشروعًا
  • 100 100 مشروع

What happens to every phrase

  1. Reuse what's already done

    Text already translated into the same language, in the same context, comes from storage instead of a model. When several requests ask for the same text at once, it's translated once.

  2. Translate in context

    The model sees which screen or category each phrase belongs to. The pieces of one sentence, or of one page, are translated together, so grammar and terminology hold across them.

  3. Put the pieces back

    A passage translated as one is split back into the pieces your app renders, in the same order, with every link and tag on the right words.

  4. Write every plural form

    Messages with a count are rewritten in the standard ICU format, with every form the language needs, and software checks each one before it ships. Your app picks the right form at runtime.

    {$t('{count} new messages', 'Inbox', { count })}
    Русский
    • 1 новое сообщение
    • 3 новых сообщения
    • 5 новых сообщений
  5. Deliver it live

    Each translation reaches your project as soon as it's ready, and your app shows it without a rebuild or a redeploy.

Sentences stay whole

A paragraph split around a link is translated as one passage, then split back, so the link lands on the right words in every language, even when the word order changes. Long pages are handled in parts that keep related pieces together, with the whole page as context.

Three pieces of a sentence joined into one passage, then split back into three translated pieces Three pieces of a sentence joined into one passage, then split back into three translated pieces

Edit a sentence, pay for a sentence

Change one sentence in a long block and Langsys translates only that sentence, with the rest of the block as context, and keeps the translations you already have for the rest.

Before the result ships, a separate AI check reads the whole block to make sure it still reads as one text, in one tone. If it doesn't, the block is translated fresh, and the attempt that was set aside isn't billed.

Built to finish

If a model returns something unusable or leaves texts out, the work is tried again and then moves to backup models, including one from a different AI company. When something does fail, Langsys knows whether it's safe to try again, and nothing is left half-done in a queue.

A route that goes around a blocked section and still reaches its destination A route that goes around a blocked section and still reaches its destination

Details that are easy to miss

Exact locales
A translation made for Costa Rican Spanish is never served to Spain. Regions and scripts, such as Traditional Chinese, are their own targets.
Local conventions
Numbers, dates and times follow the target language, and button labels read as actions.
Every writing system
Languages written without spaces, such as Thai, Chinese and Japanese, and right-to-left scripts such as Arabic and Hebrew.
Language check
Langsys can confirm a text really is in your base language before translating it, so a pasted-in quote in another language stays as written.

What you'd build and keep running

Every line is a piece of the do-it-yourself version. Each comes with Langsys.

Parts of a translation pipeline, and whether Langsys includes them
To do it yourself, you'd buildLangsys
Storage keyed by language, region and contextIncluded
One model call for identical requests that arrive togetherIncluded
Translating split sentences as one passage, then splitting them backIncluded
Plural forms in ICU, checked before they shipIncluded
Translating only what changed in an edited block, with a consistency checkIncluded
Retries, backup models and a second AI companyIncluded
Failure reasons that say whether to try againIncluded
Delivery to your app without a redeployIncluded
A review screen for your translators, whose edits winIncluded
Translation memory across projectsIncluded

Questions

Can't I just write a better prompt?
A better prompt helps with one string. Most of what this page covers isn't in the prompt: knowing which strings belong together, storing results by region and context, writing and checking plural forms, translating only what changed, and recovering when a provider fails. That's the system around the model, and that's what Langsys is.
Which AI models do you use?
Current models from leading AI companies, with backups from a second company. We test models against each other on real translation work on a regular cycle and choose for quality first, so the lineup changes only when a better one proves itself.
Is my text used to train AI models?
No. Our AI account only sends requests to providers that don't train on request data, and the gateway we route through doesn't log prompts or results.
Where is my data stored and processed?
Your projects, phrases and translations are stored in the United States, on Amazon Web Services. Text to translate is sent to our AI providers, which may process it in the United States or other countries and may keep it briefly under their own policies, for example to monitor abuse. Enterprise plans can run on a dedicated or on-premise instance.
What if a translation is wrong?
Edit it, or have your translators review it. An approved translation replaces the AI draft for every user, and it's the one Langsys reuses from then on.

Try it on your own strings