Repository navigation
Translations
Jorge Sánchez Fernández edited this page Jun 23, 2023
·
4 revisions
There are two types of translations being done:
-
Within the App - translations done locally on the app, and for that we are using
react-i18nextlibrary 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.jsonHere you can define each translation according to a specific 'key' value.
-
Outside the App - translations fetched from the xmart database directly ("translations" mart), these are the instances where it is being done:
-
Map:
- Location filter: Region, Subregion, Countries dropdown options;
- Data Filter: All input options (eg. filters, dropdown choices, radio button select options)
-
Dashboard:
- Country dropdown & country name's inside the dashboards themselves.
-
Stories
- Texts
Basically the information about countries/regions, map filters options
-
Map: