From 53cd0ef78b68f19a9f37fa42241dcfdfc6bd3500 Mon Sep 17 00:00:00 2001 From: Julian de Anquin Date: Mon, 12 Dec 2022 14:40:23 -0300 Subject: [PATCH] SEEDSDT-1189 fix missing translations --- ui/src/embeddable/reducers/data.js | 3 ++- ui/src/translations/en.json | 1 + ui/src/translations/fr.json | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/src/embeddable/reducers/data.js b/ui/src/embeddable/reducers/data.js index 91ef8fe2..99e8e977 100644 --- a/ui/src/embeddable/reducers/data.js +++ b/ui/src/embeddable/reducers/data.js @@ -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; }); } diff --git a/ui/src/translations/en.json b/ui/src/translations/en.json index 2335d6ec..c0242693 100644 --- a/ui/src/translations/en.json +++ b/ui/src/translations/en.json @@ -231,6 +231,7 @@ "burkina-faso": "Burkina Faso", "burundi": "Burundi", "ethiopia": "Ethiopia", + "eritrea": "Eritrea", "ghana": "Ghana", "kenya": "Kenya", "liberia": "Liberia", diff --git a/ui/src/translations/fr.json b/ui/src/translations/fr.json index 52105040..13c20663 100644 --- a/ui/src/translations/fr.json +++ b/ui/src/translations/fr.json @@ -201,6 +201,7 @@ "md": "DM", "na": "NA", "burkina-faso": "Burkina Faso", + "eritrea": "Érythrée", "burundi": "Burundi", "ethiopia": "Éthiopie", "ghana": "Ghana",