Docs
On this page
task2 min readApplication: Platform

Install and generate language packs

Install a shipped language pack, or generate the missing messages for a language with a translation service and a server script.

Install a language pack to offer users another language. If the pack for your language is empty or incomplete, generate the missing messages with a translation service. This page is for administrators of multilingual instances.

Before you begin

  • You need the administrator role.
  • Add the language to system.supported.locales and system.supported.languages, as described in Locales and languages.
  • To generate messages, choose a translation service and set it up as in the table under step 3.

Language packs are applications named translations-<locale>, such as translations-fr_fr. They hold only LocalizedMessage records. There is no English pack, because English is part of every application. The empty translations pack is installed for experiments, so they do not change the real packs.

Property Default Values
system.translation.service system system uses the large language models configured on the instance. google uses Google Translate. openai uses OpenAI.

Steps

  1. Go to Application → Application → Application languages and open the pack for your language.

  2. Select Install application. Installation usually takes under a minute, and the messages apply at once.

  3. If the pack is empty or you want to fill gaps, set up the translation service. The table below lists what each service needs.

  4. Go to Administration → Administrator tools → Server script.

  5. List the messages missing for the locale, such as French, across all applications:

    let missing = Translation.listMissingTranslations("fr_FR", "*");
    
  6. Generate the missing messages into the language pack. For a locale with no translations, this creates about 7,500 messages in about two minutes:

    Translation.generateMissingTranslations("fr_FR", "*", "translations-fr_fr");
    
  7. Correct poor translations with the other Translation functions, listed in the second table below.

Service What it needs
system A large language model connected to the instance. See Connect an LLM provider.
google An active outbound token of type Bearer named google.api.translation.key, holding the Google Translate key.
openai An active Bearer outbound token holding the OpenAI key. Its name is set by ai.openai.token.name, default OpenAI. ai.openai.model.id chooses the model and ai.openai.organization.id the organisation.

Outbound tokens are under Administration → Integration → System API outbound tokens.

Function What it does
Translation.translate() Translates text to test the service. It creates no records.
Translation.listMissingTranslations() Lists messages in the source locale, en_US by default, that the target locale lacks. Use "*" for all applications.
Translation.generateMissingTranslations() Generates the missing messages into the named pack.
Translation.generateLocalizedMessage() Generates messages for the keys you name.
Translation.replaceLocalizedMessage() Replaces a whole message with a better translation.
Translation.patchLocalizedMessage() Replaces part of a message.
Translation.copyLocalizedMessage() Copies messages unchanged from one locale to another, so they no longer count as missing.
Translation.deleteTranslation() Deletes messages for a locale, by key, by application or all of them.

Result

Users who choose a locale that uses the language see the translated messages. Generation only adds missing messages, so you can run it again after new components arrive without changing earlier translations.

The packs shipped with messages are Czech, Dutch, French, German, Hungarian, Italian, Polish, Portuguese (Brazil), Slovak, Spanish (Spain) and Turkish. The other packs are empty until you generate messages.

Last updated 18 October 2026commit 7b27e70aada9Chris Jones
Back to top