Machine translation
Lingo machine-translates with DeepL. Machine-translated copy is usable straight away and stays flagged as "fuzzy" until a person approves or edits it.
Operators: machine translation needs a DeepL API key. See Setup and deploy.
Translating needs the translator role or higher. Viewers can see machine-translated values but cannot create them.
Fuzzy drafts
Machine translation writes straight onto the value as a draft. It does not create a suggestion and does not wait for review. The value is exported and shipped like any other draft.
A value is fuzzy while DeepL wrote it and nobody has approved it. In the editor, a fuzzy value shows a DeepL badge next to its status badge.
- Approving the value clears the flag.
- Editing the value by hand clears the flag.
- The text that was there before is kept in the value's history, so an overwrite can always be recovered from the Activity drawer.
Reviewers are notified when machine translation writes values. See Review workflow for reviewers, comments and notifications.
Translate one value
On a language row in the editor, click the sparkle button, named Translate with DeepL. While a key is open, the command palette lists the same action for each language, for example Translate with DeepL (de-DE). Lingo sends the source-language text for that key to DeepL and writes the result into the row as a fuzzy draft. A toast confirms it.
- The sparkle is switched off, and its tooltip says why, in three cases: on the source-language row, for a role that cannot machine-translate, and when machine translation is not set up on the server.
- The source language must have a value, otherwise you get an error.
- Any value that is not approved is overwritten, including a draft a person typed. The old text stays in the history.
- An approved value is never overwritten. You see "This value is approved — reopen it before machine-translating."
- The key's context is always sent with the text. See Key context.
- The reviewers of that key are notified. If the key has none, admins and owners are.
Translate everything that is missing
On the Translations page, click Translate missing with DeepL. A popover titled "Translate missing values" opens:
- Languages. Every target language is ticked. Use Select all or tick languages one by one.
- Formality (where supported). See Formality.
- Use key context. Off by default. See Key context.
Click Translate. A toast reports how many values were translated across how many languages, and how many were skipped.
Lingo fills a value only when:
- the value is empty,
- the source-language value is not empty, and
- the key is not deleted.
It skips:
- values that already have text, whether draft, in review or approved,
- values that have a pending suggestion from a person, so machine translation never replaces work waiting for review,
- values where DeepL changed or dropped a placeholder (see Placeholders). These stay empty and count as skipped.
Each language runs on its own. If one language fails, for example a bad key or a rate limit, the toast names it and the other languages still run.
The run sends one summary notification, not one per value. It goes to everyone assigned as reviewer on any of the translated keys. If none of those keys has a reviewer, it goes to admins and owners. Opening it shows the translations list filtered to fuzzy values.
With Use key context on, DeepL reads each key's context, and Lingo sends one request per distinct context. With it off, values are sent in batches of 50. Leave it off for large runs. Turn it on when many keys need their context to translate correctly.
Create a key and translate it
In the New key dialog, the Context field is required, and the source value is optional. If the project has target languages and DeepL is set up, the dialog also shows Machine-translate into all languages. The checkbox stays disabled until you enter a source value.
Click Create key. Lingo creates the key first, with your source value, and fills what translation memory already knows: a target language whose approved translation of exactly this text exists elsewhere in your organization gets it as a draft, as if you had clicked Use (see Reuse on new keys). If the checkbox was ticked, DeepL then fills every target language that is still empty with fuzzy drafts, using the key's context. It sends one summary notification, as for a bulk run.
A toast then reports the result in the same words as a bulk run, for example "Key created. DeepL: 2 translated across 3 languages, 1 skipped." It counts only the languages that got a translation. Languages filled from memory are reported in a separate message.
A language is skipped when its translation does not pass the check before writing (see Placeholders): DeepL changed or dropped a placeholder, or changed the structure of the message. A second message names the skipped languages and says their value is still empty. Translate those by hand. If every language was skipped, the first toast says only "Key created".
If translation fails, the key is still created. The toast names the languages that did not translate, each with its error. You can translate them later with the sparkle button.
Key context
Key context is a short note on where a key is used, for example "Checkout button on the payment screen". It is saved on the key (500 characters at most). Translators and above can add or edit it at the top of the key's detail panel, under the key name. The New key dialog asks for it.
Everyone who opens the key sees it, and so does DeepL. It helps DeepL pick the right sense of short or ambiguous text.
| How you translate | Context sent to DeepL |
|---|---|
| Sparkle button on one value | Always |
| Machine-translate on a new key | Always |
| Translate missing with DeepL | Only with Use key context ticked |
Finding fuzzy values
In the translations editor, open Filter:
- Under Status (any language), choose Fuzzy (DeepL) to list keys that have a fuzzy value in any language.
- Under Language coverage, pick a language, then pick Fuzzy (DeepL) as the status, to see one language's review queue.
The list view itself has no fuzzy marker. Open a key to see the DeepL badge on each fuzzy row. The page address carries the filter (?status=fuzzy), so you can bookmark or share it.
Approved values are protected
Machine translation never overwrites an approved value. The sparkle button refuses it, and bulk and new-key translation only fill empty values. To re-translate an approved value, an admin or owner has to reopen it first (see Approving without a suggestion).
Exporting drafts
Fuzzy values are drafts, so they follow the normal draft rule. There is no separate switch for machine-translated copy.
- Export screen. Fuzzy values are included when Include drafts & in-review is switched on, and left out when it is off. See Import and export.
lingo pull. Fuzzy values are included by default. They are left out only if the config setspulltoapproved. See CLI.
Placeholders
Lingo protects placeholders and tags so DeepL does not translate them, and it works out per string how to send it. There is nothing to set.
- A sentence with placeholders or tags is sent whole. That covers i18next placeholders (
{{name}}), numbered tags (<1>…</1>), single-brace placeholders ({name}), named tags (<b>…</b>,<strong>…</strong>, a custom one such as<hoursLink>…</hoursLink>) and line breaks (<br/>). Each placeholder is swapped for a numbered stand-in before sending and put back afterwards, so DeepL cannot translate its name and can move it to where the target grammar needs it. Tags are sent as they are, so the words around them can move too. - Plurals, selects and formatted values are sent in pieces. In an ICU message with a plural, an ordinal, a select, or a formatted placeholder (
{price, number},{when, date, short}), only the plain text of each branch is sent. Everything else is written back as it was, including a pluraloffset:and#. A message whose source uses ICU quoting is handled the same way. In these messages an apostrophe that would start an ICU quote is doubled, for example Frenchl''{item}, and a brace, a tag, or a#inside a plural branch that DeepL returns is quoted. - Plain text is sent whole and stored exactly as DeepL returned it.
- An apostrophe right before a tag or a single-brace placeholder is stored as a typographic apostrophe, for example
l’<b>adresse</b>orjusqu’{date}. Apps that read ICU treat a straight apostrophe in that spot as the start of a quote and would show the tag as text. Next to an i18next{{name}}the apostrophe stays as DeepL wrote it.
Lingo checks every machine translation before writing it:
- Every placeholder must come back exactly once.
- The tags must be the ones in the source: none dropped, added, renamed or split in two, a link's address unchanged, and each opening tag still closed in order. DeepL may move tags and put them in a different order.
- A tag that had text inside must not come back empty, as in
<b></b>. - A message sent in pieces must read back with the same placeholders, branches and tags as the source.
If a check fails, the value is not written. A single translation shows an error. A bulk run, or translation from the New key dialog, skips that value and leaves it empty. DeepL does this rarely: in a trial on about 1,500 translations of strings with tags and placeholders, 5 were refused.
Check placeholders when you edit machine-translated text by hand. A renamed placeholder is not a placeholder any more.
Formality
The bulk popover has a formality picker with five options: default, more, less, prefer_more and prefer_less. The sparkle button and the New key checkbox always use default.
Glossary
The glossary lists terms DeepL must translate in a fixed way, such as brand names. Admins and owners manage it in the project's settings, under Glossary. Other roles cannot open that page.
To add a term, enter the source term, the target translation and the target language, then click Add term. Terms can be deleted but not edited. To change one, delete it and add it again.
A glossary applies to every DeepL request for that target language: one value, bulk and new key. Changes take effect on the next translation. If DeepL does not accept a glossary for a language pair, translation continues without it and nothing is shown.
Translation memory
Separate from DeepL, each non-source row can show a Memory panel. It lists up to five earlier translations of similar source text, so you can reuse reviewed wording. Translators and above see it.
- A match must be approved and non-empty, and its key must not be deleted.
- Matches come from other keys in your organization's active projects that have the same source language. They can be in other projects. They never come from another organization.
- The source text must be at least 60% similar. The percentage is shown on each match.
- Fuzzy drafts are never offered. A machine translation appears in Memory once a person approves it.
- With no matches, the panel is not shown.
Click Use on a match to put its text into the row. It saves as if you had typed it: no DeepL badge, and the value keeps its status. An empty value becomes a draft, and so does an approved value when a translator changes it (see Editing approved text).
Reuse on new keys
When a key is created with source copy, in the New key dialog or by an agent with create_key, Lingo fills its target languages from memory once, at creation, before any machine translation. Editing the source text later does not run it again.
- Only an identical source text counts: same spelling, same case. Similar text is left to the Memory panel.
- What counts as memory is the same as for the panel: approved, non-empty values on live keys in your organization's active projects with the same source language.
- The translation is written as a draft, as if you had clicked Use: no DeepL badge, and it is reviewed like any other draft.
- When the approved translations of that text differ between keys, the language stays empty and a message names it. Pick one in the editor.
The dialog says how many languages were filled, for example "2 languages filled from translation memory". An agent gets the list, with the key each translation was copied from, under memory in the tool's result, and can turn the step off for one call with reuseMemory=false. Keys created through the REST API or by an import are not filled from memory.
Limitations
- ICU messages with plurals, selects or formatted values are translated in pieces, so DeepL sees each branch without the number or the rest of the sentence. Wording can need a touch-up.
- A translation that repeats a placeholder is refused, even where repeating it is good grammar in the target language. Translate that value by hand.
- A bulk run is one request that waits until it finishes. For thousands of missing values, expect a long wait. Translate one or two languages at a time to keep runs short.
- Glossary language codes do not carry a region: a glossary for
pt-BRis sent to DeepL asPT. - The list view does not mark fuzzy values. Use the filter.