Spanish Total.js
English
Documentation For AI agents
Contents

Languages and translations

Write in one language and translate page by page. Documents tells you when a translation falls behind its original.

.md
On this page

Enabled languages

In Languages you choose the languages of the site and the default one, and you can add a language with its flag. Pages in the default language have no prefix in the address; the others have one: /es/{project}/…. The interface of the site follows the language of the address. The panel has its own: each person chooses it in the language menu under their name (or on the sign-in page), and it is kept with their account. The interface comes in English, Spanish, German, French, Italian and Slovak; a new resources/{language}.resource adds another one (node tools/translations.js --export lists every text).

The original language

Each project has an original language. Pages and entries are written in it, and translated into the other enabled languages.

Translating

Open Translations in the panel and choose a language: its tab shows how much of it is up to date. The list is grouped by project, with a progress bar, and shows every page with its API entries under it, in reading order. Filter it by status (To do shows what is outdated or missing), by project, or search it. Each item has a status:

  • missing: not translated yet. Readers see the original with a notice.
  • outdated: the original changed after the translation. Readers see the translation with a notice.
  • current: up to date.

Click an item to translate it next to its original. For entries, the parameters and examples start as a copy of the original, so you only translate the texts. In the form:

  • Changes in the original since this translation: for an outdated translation, the lines added and removed in the original, so you do not read the whole page again.
  • Mark as up to date: when the change of the original does not affect the translation (a typo, a link).
  • Copy the original: fills the empty fields with the original, to translate over it (code blocks and tables stay).
  • Save and next: saves and opens the next item that still needs work.

Agents that translate

A token with the translator role lets an AI agent list what is missing and save translations. See Let an agent translate.

Made in Europe