Skip to main content

Language and translations

Where translations live​

PartLocationLanguages delivered
Application modulesOne file per language in the i18n directory of the module: en.json, fr.jsonEnglish and French
Dashboard and administration consolepublic/locales/<language>English, French and Spanish
E-mail and document templatesThe theme, with one file per language where a translation existsFrench by default, with translations where the theme provides them

Translation files are flat lists of keys and labels. Keys contain dots and are not nested.

How the language is chosen​

The dashboard keeps the member's language in a cookie and passes it to the server modules in the Accept-Language header of its requests, so that the labels returned by a module match the language of the page.

Completing a translation​

The English files do not all cover every key. When a label appears in another language or as a raw key:

  1. Find the key in the French file of the module, i18n/fr.json.
  2. Add the same key, with its label, to i18n/en.json.
  3. Rebuild and redeploy the module. Translations are cached, so the change shows after the module restarts.

To add a language, add a file named after its code next to the others, with the same keys.

Messages sent to members​

The sign-in details e-mail and the welcome messages are edited in the administration console, under Configuration > Messages. The screen edits the default version of the template. When the theme includes a translation of the template for a language, the directory uses it when that language is the one of the administrator who triggers the sending.

The message shown on the sign-in page is multilingual and has a rich text editor with a preview.

What stays in one language​

Some content is created as data when an organization is set up, in the language of the defaults, and is then edited like any other data: the default types of homework and of session, for example. Check these lists after setting up an organization. See Reference data.

Text analysis is tied to the engines deployed. See Content analysis.