Skip to content

Translations in the frontend

To translate strings in the frontend, we use ngx-translate, which is a library that reads the JSON files in /apps/frontend/public/i18n. To make working with translation files easier, we use a custom CLI tool called translate-tool.

You can install it on your local machine, or alternatively run it through the provided docker image. For this, we have the tt pnpm script.

shell
pnpm tt

Then, while inside the docker container, you can run translate-tool followed by your command.

shell
translate-tool add