Skip to content

Translations

Jorge Sánchez Fernández edited this page Jun 23, 2023 · 4 revisions

There are two types of translations being done:

  1. Within the App - translations done locally on the app, and for that we are using react-i18next library to manage the different languages (English, Spanish & French). The vast majority of the wordings within the app are being defined here, with the exceptions being mentioned on the next translation type, with one file for each language:
  • English: src > webapp > translations > en > translations.json

  • Spanish: src > webapp > translations > es > translations.json

  • French: src > webapp > translations > fr > translations.json

    Here you can define each translation according to a specific 'key' value.

  1. Outside the App - translations fetched from the xmart database directly ("translations" mart), these are the instances where it is being done:

    1. Map:
      • Location filter: Region, Subregion, Countries dropdown options;
      • Data Filter: All input options (eg. filters, dropdown choices, radio button select options)
    2. Dashboard:
      • Country dropdown & country name's inside the dashboards themselves.
    3. Stories
      • Texts

    Basically the information about countries/regions, map filters options

Clone this wiki locally