Skip to content

Add New Language

Akram El Assas edited this page Oct 12, 2024 · 2 revisions

To add a new language proceed as follow:

API

  1. Add the new language ISO 639-1 code to LANGUAGES setting in api/src/config/env.config.ts.
  2. Create a new file <ISO 639-1 code>.ts in src/lang folder and add the translations in it.
  3. Add your translations to src/lang/i18n.ts

Backend

  1. Add the new language ISO 639-1 code and its label in src/config/env.config.ts in LANGUAGES constant.
  2. Add the translations in src/lang/*.ts.

Frontend

Add the translations in src/lang/*.ts.