Skip to content

Commit

Permalink
SEEDSDT-1189 fix missing translations
Browse files Browse the repository at this point in the history
  • Loading branch information
jdeanquin-dg committed Dec 12, 2022
1 parent 1cb2470 commit 53cd0ef
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/src/embeddable/reducers/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ export const getCountries = (dataSource) => (dispatch, getState) => {
let translatedData = data;
if (intlState && intlState.messages) {
translatedData = data.map(c => {
c.translatedLabel = intlState.messages[normalizeField(c.country)];
const translation = intlState.messages[normalizeField(c.country)];
c.translatedLabel = translation ? translation : c.country;
return c;
});
}
Expand Down
1 change: 1 addition & 0 deletions ui/src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@
"burkina-faso": "Burkina Faso",
"burundi": "Burundi",
"ethiopia": "Ethiopia",
"eritrea": "Eritrea",
"ghana": "Ghana",
"kenya": "Kenya",
"liberia": "Liberia",
Expand Down
1 change: 1 addition & 0 deletions ui/src/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@
"md": "DM",
"na": "NA",
"burkina-faso": "Burkina Faso",
"eritrea": "Érythrée",
"burundi": "Burundi",
"ethiopia": "Éthiopie",
"ghana": "Ghana",
Expand Down

0 comments on commit 53cd0ef

Please sign in to comment.