Support Log in
All Features: Translate WordPress with AI

Translation Memory


What is translation memory?

Translation memory is a tool that professional translators use. The idea is simple: a sentence you have translated is saved. The next time that sentence, or a nearly identical one, shows up in your content, you get the saved translation as a suggestion.

On a site with repeated text, such as product pages or footers, the saved translations are reused instead of translated again.

Translation memory is part of the paid Lang Forge plans.


How Lang Forge’s translation memory works

SHA256 exact matching

The memory takes in text and stores it with a SHA256 hash. When the AI would translate a text whose hash matches an existing entry for the same pair of languages, the stored translation is used and the text is not sent to the AI, so no credits are used for that text. The hash ignores capital letters and spaces at the start and the end of the text. A text is stored without its HTML tags and looked up as it is. 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.

This helps with:

  • Recurring phrases (“Buy now”, “Read more”, “In stock”)
  • Product attribute labels
  • Navigation items
  • Short UI strings
  • Boilerplate legal text

75% fuzzy matching

For strings that are almost the same — like “Get started with the free plan” vs. “Get started with the premium plan” — Lang Forge offers a fuzzy match based on a 75% similarity threshold. You see the suggestion in the editor, you edit the difference, and you save the new entry.

Fuzzy matching finds near matches that exact matching misses.


Automatic population

You don’t have to seed the TM. It fills itself.

The translation memory takes in:

  • The title, the excerpt, and the text blocks (paragraphs, headings) of a translation that you publish, or update after publishing, in the WordPress editor, as long as the translation has the same blocks as the original in the same order and its texts are in proportion with the original’s. A whole post that you translate in bulk with AI is learned the same way, when you publish it
  • The segments the AI translates one by one, for example with the AI Translate buttons of the Visual Editor, as soon as they are translated
  • The segments you changed in the Visual Editor, when you click Save All or press Ctrl + S (Cmd + S on Mac), for a published or scheduled translation. The automatic save about 5 seconds after you stop typing, and segments you did not touch, add nothing
  • The segments you save in the Frontend Visual Editor, as soon as you save them
  • The new or changed pairs of a CSV or XLIFF file that you import, for the languages enabled on your site and when the file names the language of the original as its source
  • The translations you save on the String Translation screen

In the WordPress editor and in the Visual Editor, only published or scheduled posts without a password teach the memory, the original and the translation alike; 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. The segments the AI translates one by one, the segments you save in the Frontend Visual Editor, and the pairs of an imported file are added whatever the status of the post. The database grows as you work. There is no separate “Save to TM” button, and no setting to turn it on.

For sites migrating from WPML or another translation plugin, the button “Populate from existing translations” on the Translation Memory screen, or the WP-CLI command wp langforge tm-populate, scans your existing translations and imports them in one batch.


Suggestions in the visual editor

As you open a field for translation, Lang Forge checks the translation memory in the background. If a match exists:

  • Exact match: the translation appears pre-filled, with a small badge indicating it came from the TM.
  • Fuzzy match: the closest existing entry appears as a suggestion below the field, with the similarity percentage. Click to accept, then edit the difference.

Suggestions are shown before AI translation runs. When the AI would translate a text, Lang Forge first looks for an exact match, and a text that has one is not sent to the AI. Re-Translate All, on the strings page and in the Visual Editor, skips the memory, a bulk run uses it only when the title, the text and the excerpt of a post all have an exact match (an empty excerpt needs none), and a stored translation whose shortcodes differ from the source is not used.


Where translation memory is used

Translation memory is used while you translate: the Visual Editor suggests matches. The AI Translate button of a post looks in the memory for each part it translates and takes an exact match instead of calling the AI; a bulk run takes matches from the memory only when every part of a post (title, text, excerpt) has one, and otherwise sends the post to the AI as a whole. A translated page is an ordinary post in your WordPress database, so a visitor who opens it is served the saved post, and the translation memory is not consulted. The one exception is the optional comment translation of the Pro add-on: the first time a comment is shown in another language, it looks for an exact match, otherwise asks the AI, and saves the result with the comment.

How Lang Forge loads the translations of a page is described in the Performance Optimization guide.


Where translation memory helps

  • E-commerce stores with hundreds of products that share attribute names and category descriptions
  • Documentation sites with recurring section headers, navigation, and boilerplate warnings
  • Agencies translating similar content for multiple clients — the same translations reused across projects
  • News and magazine sites where bylines, tags, and section labels repeat across thousands of posts
  • Translation teams using a glossary-plus-TM workflow to keep terminology consistent

Translation memory is included in every paid plan

Personal, Professional, and Agency plans all include translation memory with exact and fuzzy matching, CSV import/export, and WP-CLI population.

See pricing →

Forge AI Assistant Online

Hi! I'm the Lang Forge AI assistant. Ask me anything about the plugin — setup, features, troubleshooting, or development.

Just now
Powered by Forge AI · Browse docs