This page describes what to translate and how to decide on terms for your language. For the mechanics, such as extracting strings, updating catalogs, compiling and the AI backfill, see Contributing Translations. Record each decision in its pull request (see Recording a decision).
By default, translate every term. Keep the English term only in these cases:
superset/translations/do-not-translate.txt lists them, and your catalog marks them with the comment #. do-not-translate.Slug, Backend or the name of a data warehouse. If the user's tools show the English word, keep it. Then the user can connect the two names. If their tools show a translated word, use that word. For example, the French catalog translates Host as Hôte.In every translated string, keep the placeholders %s, %(name)s and {name} exactly as they are. A wrong placeholder can cause an error in the UI.
Before you choose a translation for a term, search your catalog for the word. Check that no other concept already uses it.
For example, the Spanish catalog translates “Dashboard” as Panel de control. It uses the same words for the control panel in Explore, in “Select values in highlighted field(s) in the control panel”. Romanian (Panou de control) and Serbian (Контролна табла) have the same problem. A review of single strings does not find it, because each string looks correct alone.
Some choices apply to every string of a language. Make each choice once, and record it:
Plural-Forms line in the catalog header gives the number of forms. For example, Spanish has two (nplurals=2) and Romanian has three.When a term has different translations in a catalog, count how many times each one appears. Usually the most common form is the right choice. It is not the right choice when it breaks a rule on this page. In Spanish, Panel de control is the most common translation of “Dashboard”, and it is the collision above.
Native speakers of the language decide in the pull request. Write which other options you rejected, and why. Change an agreed term in its own pull request, so that reviewers see it as a terminology decision.
Record a terminology decision in the description of the pull request that makes it. Write the term, the translation that it replaces, the count, and the options that you rejected. Give the pull request a title such as fix(i18n-es): ..., so that a search of merged pull requests finds it.
Sometimes one string is unclear without its code. In that case, a developer can add an i18n: comment to the string. See Adding context for translators. If you are a translator and a string is unclear, open an issue that names the string. You can also add the comment yourself in a pull request.