Skip to content
Docs

Translation memory

Reuse translations you already have instead of asking the model.

Everyone2 min read

If you have strings that were translated before, in other projects or old files, give them to Localizator. When the same source string comes up, it reuses the translation as it is, instead of asking the model.

Add files

  1. Open the dialog

    In Settings › AI tuning, select Add files next to Translation memory.

  2. Choose the files

    The Add reference files dialog needs one source file (the source language) and one or more locale files: entries are paired up by key. Files are JSON or ARB, up to 10 at a time and 2 MB each.

    The locale is read from the file name, such as app_de.json. A file whose name doesn't name a locale is marked "Locale not recognised"; rename it and pick it again. A file for the source language that you drop on the locale files goes into the source slot.

  3. Add them

    Select Add files. You see how many strings were added, such as "12 strings added to memory".

How pairs are made

For each key that is in both the source file and a translation, Localizator records "source text → translation" for that language. When the same pair comes up twice, the first one wins, so uploading a newer file doesn't quietly change agreed wording.

How it's used

Before calling the model, each string to translate is looked up in the memory: same text (extra spaces don't matter, letter case does), same pair of languages. A match is filled straight from the memory and counted as "from memory". There is no fuzzy matching: a string that differs by a word goes to the model.

Remove a file

The source file is listed with its number of strings, and the locale files together on one line with their locales. Remove them with the bin icon (Remove locale files for the locale files): their pairs are deleted too.

Uploads and removals are recorded in the activity log as "Reference material added" and "Reference material removed".

Related