Translation Memory saves the translations you publish and the segments the AI translates, and reuses them when the same or similar text appears elsewhere on your site. Think of it as a personal translation database that grows smarter the more you use Lang Forge. Over time, Translation Memory reuses stored translations instead of generating new ones: an exact match is returned before the AI is called, so no AI credits are used for it.
Translation Memory is suited to sites with recurring content patterns — product descriptions that follow a template, legal pages with standard paragraphs, support articles with common phrases, FAQ answers that repeat across multiple pages, and any content where the same sentences appear in different contexts.
How Translation Memory works behind the scenes
Lang Forge stores the original text and its translation as a matched pair when you do any of the following. This happens automatically. You do not need to take any extra steps or “save to memory”; it simply builds itself as you work.
- Publish a translation, or update a published one, in the WordPress editor. Its title, its excerpt, and its text blocks (paragraphs, headings) are saved, provided the translation keeps the block structure of the original and its texts are in proportion with the original’s
- Click Save All, or press Ctrl + S (Cmd + S on Mac), in the Visual Editor. The segments you changed are saved, only for a published or scheduled translation, and only while the original paragraph next to a segment is unchanged since you opened the editor. Segments you did not touch are not saved, and neither is anything on the automatic save about 5 seconds after you stop typing
- Import a CSV or XLIFF file. The new or changed pairs of the file are saved, for the languages enabled on your site and when the file names the language of the original as its source
- Save translations on the String Translation screen. The strings you type are saved
In the WordPress editor and in the Visual Editor, a post teaches Translation Memory only when the original and the translation are both published or scheduled and have no password. Drafts, pending and private posts teach nothing there, and neither does a translation flagged as out of date that you save in the WordPress editor.
Single-segment AI calls (the per-field “AI Translate” button, the Visual Editor’s per-segment re-generate, the Frontend Visual Editor inline edit, and SEO meta translations done by the Rank Forge bridge) all feed the same TM table — so the memory grows whether you translate a whole post or fix one sentence at a time.
The next time you encounter a segment that matches (or is similar to) a previously translated one, Translation Memory offers the stored translation as a suggestion:
| Match type | What it means | How it appears |
|---|---|---|
| Exact match (100%) | The new segment is identical to one you translated before | The stored translation is auto-filled in the Visual Editor with a green “100%” badge |
| Fuzzy match (75-99%) | The new segment is similar but not identical (at least 75% similarity) | A suggestion appears with a percentage badge (e.g., “87%”). Differences between the stored segment and the new one are highlighted in color so you can quickly spot what to adjust |
| No match (below 75%) | The segment is too different from anything in memory | No suggestion appears. You translate from scratch (and once you publish the translation, it can be added to memory for future use) |
How fuzzy matching works in practice
Fuzzy matching compares text at the word level, not character level. This means it handles variations intelligently. For example:
| Stored translation | New segment | Match % | What you see |
|---|---|---|---|
| “Contact our support team today” | “Contact our customer support team today” | 91% | The word “customer” is highlighted as the difference. You insert one word and accept |
| “Free shipping on orders over $50” | “Free shipping on orders over $75” | 95% | The number “$50” vs “$75” is highlighted. You change one number and accept |
| “Our hotel features 200 rooms” | “Our resort features 150 suites” | 72% | Below threshold — no suggestion. Three key words differ too much |
Where Translation Memory suggestions appear
- Visual Editor: When you click a segment to translate, a suggestion panel appears below the field showing any TM matches. Click a suggestion to insert it, then edit if needed
- AI Translation: Before the AI translates a text, Lang Forge checks Translation Memory for an exact match: the same source text for the same pair of languages. If one exists, the stored translation is used and the text is not sent to the AI, so it uses no credits. Re-Translate All, on the strings page and in the Visual Editor, skips the memory, and a stored translation whose shortcodes differ from the source is not used. Translation Memory finds a text only when it has no HTML tags (a title, an excerpt or a string usually has none); a paragraph in the Visual Editor and the text of a post come with their tags, so they are not found
- Bulk Translation: A bulk run takes a post from the memory only when its title, its text and its excerpt (an empty excerpt needs none) all have an exact match. If one of them has none, the post is sent to the AI as a whole
Managing Translation Memory in the admin
Open Lang Forge → Tools → Translation Memory. The page lists every pair LangForge has captured, paginated 25 entries per page. From here you can:
- Search by source or target text (the box at the top of the toolbar) — debounced 250 ms, matches anywhere in the segment.
- Filter by language pair with the From / To dropdowns. Leave both as “Any …” to see the full memory.
- Edit a pair: click the pencil icon on any row. A modal opens with the source (read-only — it’s the unique key) and target (editable) text. Save to update the stored translation; future Visual Editor suggestions and AI exact-match lookups use the new value immediately.
- Delete a pair: click the trash icon. A confirm dialog warns you the deletion is permanent.
- Populate from existing translations: the toolbar button walks every translation group on the site and writes one TM pair per matched paragraph. Use this once after migrating from WPML, Polylang, or TranslatePress.
- Import a TMX file (toolbar → Import TMX): drag-drop a TMX 1.4 file (
.tmxor.xml, max 10 MB). After upload you’ll see the number of entries imported, the number of duplicates skipped, and any parse errors. Tick Overwrite existing entries if you want incoming pairs to replace any same-source pair already in memory; otherwise duplicates are skipped. - Export TMX: toolbar → Export TMX downloads the entire memory as a TMX 1.4 XML file. Filter by From / To first to scope the export to a specific language pair (filename:
langforge-tm-{from}-{to}-YYYY-MM-DD.tmx).
The empty state (“Your Translation Memory is empty”) appears when no pairs exist yet. From there a single click on Populate from existing translations seeds the memory if your site already has translated posts.
If you only need to inspect or migrate stored pairs without using the UI, you can also reach the same data through:
- Lang Forge → Tools → Populate Translation Memory (alternate entry point for the populate action).
- Lang Forge → Tools → Import / Export for XLIFF / CSV round-trips with a translator — TM takes in the new or changed pairs of an imported file, for the languages enabled on your site and when the file names the language of the original as its source.
- Direct
wp_langforge_translation_memorySQL for power users (see Developer Guide).
Real-world example: Translation Memory saving time on a product catalog
An online store sells 300 products. Many product descriptions share common phrases: “Free shipping on orders over $50”, “30-day money-back guarantee”, “Available in multiple sizes and colors”, “Made from premium materials”. The content manager translates the first 50 products into Spanish. Translation Memory stores all these common phrases. When she moves to products 51 through 300, the Visual Editor fills in the saved translation of each recurring phrase, so she does not retype them. For a catalog of 300 products, Translation Memory reuses the saved translations, so that “30-day money-back guarantee” is translated identically on every single product page.
What happens on the Free plan
Translation Memory is not active on the Free plan: no translation pairs are stored, and the Visual Editor’s TM suggestion panel does not appear. If you upgrade to PRO later, TM starts accumulating from that point forward. It does not retroactively index translations made before the upgrade, but from then on the translations you publish or update, and the segments the AI translates, are saved into TM. To backfill TM from translations that existed before you turned PRO on, use Lang Forge → Tools → Populate Translation Memory — it walks the existing translation groups and seeds pairs into the TM table.
Common mistakes to avoid
- Treating TM as a once-and-done list. TM grows automatically as you publish translated posts and pages, save changes in the Visual Editor, and run AI translation. Bad pairs come from bad source translations — fix those at the source post or use the Translation Memory page’s edit modal directly to repair the cached pair, then save
- Skipping TM populate after migration. When you migrate from WPML, Polylang, or TranslatePress, the existing translations don’t auto-seed TM. Click Populate from existing translations on the Translation Memory page once after migration so AI translations of new content start picking up the in-place translations as exact matches
- Importing a TMX without checking the Overwrite toggle. By default, duplicate source segments are skipped on TMX import. If your TMX has the freshest, most-correct copy of every translation, tick Overwrite existing entries before clicking Import — otherwise older pairs already in memory win
> Tip: Translation Memory suits sites with standardized content. If your site uses templates or patterns (product descriptions, job listings, property listings, course descriptions), TM will quickly learn the common elements and save enormous amounts of time.
> Good to know: TMX export and import use the standard TMX 1.4 format, so any CAT tool (memoQ, Trados, OmegaT, Smartcat, …) can swap memories with LangForge directly. For an agency you’d ship a TMX from Lang Forge → Tools → Translation Memory → Export TMX; for a translation request returning a TMX, drop it into Import TMX and pick the Overwrite policy that matches your trust level for the incoming pairs.
[Screenshot: The Visual Editor showing a translation segment with a Translation Memory suggestion panel displaying a 92% fuzzy match with highlighted differences]
—