Repository navigation
Multilingual Support
Malaria Threats Map app provides multilingual support for English, French and Spanish. Translation files can be found on EyeSeeTea/malaria-threats-map/tree/master/src/webapp/translations.
To facilitate the work of translators, EyeSeeTea has integrated the terms into a translation platform: POEditor.
Terms can be modified on the PoEditor platform and then imported into the project.
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: