Skip to main content

Keep terms consistent

Goal: decide once which words your project uses for its key terms (product names, UI actions, the words your domain depends on) and have kapi flag anything that drifts. In a project with one language, the terms store holds the word to use and the words to avoid, and kapi check fails a source file that uses a forbidden term, under the rule terms.vocabulary; a term marked advisory reports the use without failing. When the recipe declares a target language, the same terms store also says how each term carries into that language: it guides translation before and checks it after. The rest of the page is about that case. Concepts: Terminology; storage models: Memory & terms storage.

kapi keeps terms in a terms bundle (terms.json). To bring in a list your team already keeps elsewhere, such as a spreadsheet exported to CSV, import it:

terms.csv
sourcetargetdomain
passwordmot de passesecurity
log inse connecterui
dashboardtableau de bordui
settingsparamètresui

Context → Terms is where that list lives:

  1. Bring in the list. Import the CSV from the CLI (kapi terms import, below) or land term operations through kapi apply; both write the project's terms store. The view lists terms by language pair and domain, ready to browse and search.
  2. Spot-check a term. Look up an entry to confirm the approved target before a full pass, and open its occurrences to see where the project uses it.
  3. Enforce it. With the terms store in the project, term findings surface in the findings count on the project's Map, in the terminology gate of check --ship, and against each block in the Review queue.

Try it​

The rail imports the list above into a terms store, inspects it and looks up terms, then pseudo-translates and runs term-check against the store:

Loading the walkthrough…

Next​