diff --git a/components/indicators/IndicatorCard.tsx b/components/indicators/IndicatorCard.tsx index 060ff40c..fda4ff37 100644 --- a/components/indicators/IndicatorCard.tsx +++ b/components/indicators/IndicatorCard.tsx @@ -215,7 +215,9 @@ function IndicatorCard({ // FIXME: It sucks that we only use the context for the translation key 'action' const indicatorType = - level === 'action' ? t('action', getActionTermContext(plan)) : t(level); + level === 'action' + ? t('action', getActionTermContext(plan)) + : t(`${level}-indicator`); return ( diff --git a/components/indicators/IndicatorHero.tsx b/components/indicators/IndicatorHero.tsx index 4037dc0a..370cb5ba 100644 --- a/components/indicators/IndicatorHero.tsx +++ b/components/indicators/IndicatorHero.tsx @@ -158,7 +158,7 @@ function IndicatorHero(props: IndicatorHeroProps) { indicator.level === 'action' ? t('action', getActionTermContext(plan)) : indicator.level != null - ? t(indicator.level) + ? t(`${indicator.level}-indicator`) : null; return ( diff --git a/components/indicators/IndicatorHighlightCard.js b/components/indicators/IndicatorHighlightCard.js index 3c8be461..489a633a 100644 --- a/components/indicators/IndicatorHighlightCard.js +++ b/components/indicators/IndicatorHighlightCard.js @@ -102,7 +102,9 @@ function IndicatorHighlightCard(props) { // FIXME: It sucks that we only use the context for the translation key 'action' const indicatorType = - level === 'action' ? t('action', getActionTermContext(plan)) : t(level); + level === 'action' + ? t('action', getActionTermContext(plan)) + : t(`${level}-indicator`); return ( diff --git a/components/indicators/IndicatorListFiltered.tsx b/components/indicators/IndicatorListFiltered.tsx index 91d330fc..ce135ede 100644 --- a/components/indicators/IndicatorListFiltered.tsx +++ b/components/indicators/IndicatorListFiltered.tsx @@ -536,7 +536,7 @@ const IndicatorListFiltered = (props) => { const indicatorType = item.level === 'action' ? t('action', getActionTermContext(plan)) - : t(item.level); + : t(`${item.level}-indicator`); let [normalizedValue, normalizedUnit] = [null, null]; // We currently support only one normalizer, the population indicator const normalizations = item.common?.normalizations; diff --git a/locales/da/common.json b/locales/da/common.json index f8c19728..e7c41c7b 100644 --- a/locales/da/common.json +++ b/locales/da/common.json @@ -112,7 +112,7 @@ "no-actions": "Ingen handlinger", "number-of-search-results_one": "et hit til søgning", "number-of-search-results_other": "{{count}} hits til søgning", - "operational": "Driftsindikator", + "operational-indicator": "Driftsindikator", "other-plans-only": "Søg i alle andre planer", "over-x-days": "Over {{days}} dage", "page": "Side", @@ -141,9 +141,9 @@ "search-no-results": "Ingen resultater for denne søgning. Prøv at ændre søgetermerne.", "send": "Sende", "skip-to-content": "Hoppe til hovedindhold", - "strategic": "Strategisk indikator", + "strategic-indicator": "Strategisk indikator", "supported-by": "Støttet af", - "tactical": "Taktisk indikator", + "tactical-indicator": "Taktisk indikator", "themes": "Temaer", "to-reduce": "Skal reduceres", "total": "I alt", diff --git a/locales/de/common.json b/locales/de/common.json index 48c6ec23..cfc8d5e1 100644 --- a/locales/de/common.json +++ b/locales/de/common.json @@ -113,7 +113,7 @@ "number-of-search-results_one": "Ein Suchergebnis", "number-of-search-results_other": "{{count}} Suchergebnisse", "open": "Öffnen", - "operational": "Operativer Indikator", + "operational-indicator": "Operativer Indikator", "other-plans-only": "Suche in allen anderen Plänen", "over-x-days": "Mehr als {{days}} Tage", "page": "Seite", @@ -142,9 +142,9 @@ "search-no-results": "Keine Ergebnisse für diese Suche. Versuchen Sie, die Suchbegriffe zu ändern.", "send": "Abschicken", "skip-to-content": "Zum Hauptinhalt springen", - "strategic": "Strategischer Indikator", + "strategic-indicator": "Strategischer Indikator", "supported-by": "Unterstützt von", - "tactical": "Taktischer Indikator", + "tactical-indicator": "Taktischer Indikator", "themes": "Themen", "to-reduce": "Noch zu reduzieren", "total": "Gesamtwert", diff --git a/locales/en/common.json b/locales/en/common.json index f5bece42..94f81011 100644 --- a/locales/en/common.json +++ b/locales/en/common.json @@ -121,7 +121,7 @@ "number-of-search-results_one": "one hit for search", "number-of-search-results_other": "{{count}} hits for search", "open": "open", - "operational": "Operational indicator", + "operational-indicator": "Operational indicator", "other-plans-only": "Search all other plans", "over-x-days": "Over {{days}} days", "page": "Page", @@ -152,9 +152,9 @@ "search-no-results": "No results for this search. Try changing the search terms.", "send": "Send", "skip-to-content": "Skip to main content", - "strategic": "Strategic indicator", + "strategic-indicator": "Strategic indicator", "supported-by": "Supported by", - "tactical": "Tactical indicator", + "tactical-indicator": "Tactical indicator", "themes": "Themes", "to-reduce": "Left to reduce", "total": "total", diff --git a/locales/es/common.json b/locales/es/common.json index 0b790c2a..adbc51be 100644 --- a/locales/es/common.json +++ b/locales/es/common.json @@ -112,7 +112,7 @@ "no-actions": "Ninguna acción", "number-of-search-results_one": "un acierto para la búsqueda", "number-of-search-results_other": "{{count}} resultados de la búsqueda", - "operational": "Indicador operativo", + "operational-indicator": "Indicador operativo", "other-plans-only": "Buscar todos los demás planes", "over-x-days": "Más de {{días}} días", "page": "Página", @@ -141,9 +141,9 @@ "search-no-results": "No hay resultados para esta búsqueda. Pruebe a cambiar los términos de búsqueda.", "send": "Envíe", "skip-to-content": "Ir al contenido principal", - "strategic": "Indicador estratégico", + "strategic-indicator": "Indicador estratégico", "supported-by": "Con el apoyo de", - "tactical": "Indicador táctico", + "tactical-indicator": "Indicador táctico", "themes": "Temas", "to-reduce": "Izquierda para reducir", "total": "total", diff --git a/locales/fi/common.json b/locales/fi/common.json index b40fbcb2..6600b304 100644 --- a/locales/fi/common.json +++ b/locales/fi/common.json @@ -114,7 +114,7 @@ "no-actions": "Ei toimenpiteitä", "number-of-search-results_one": "1 osuma haulle", "number-of-search-results_other": "{{count}} osumaa haulle", - "operational": "Toiminnallinen mittari", + "operational-indicator": "Toiminnallinen mittari", "other-plans-only": "Hae kaikista muista toimenpideohjelmista", "over-x-days": "Yli {{days}} päivää", "page": "Sivu", @@ -143,9 +143,9 @@ "search-no-results": "Haulla ei löytynyt tuloksia. Yritä muokata hakuehtoja.", "send": "Lähetä", "skip-to-content": "Hyppää sisältöön", - "strategic": "Strateginen mittari", + "strategic-indicator": "Strateginen mittari", "supported-by": "Kehitystä tukenut", - "tactical": "Taktinen mittari", + "tactical-indicator": "Taktinen mittari", "themes": "Teemat", "to-reduce": "Vähennettävää", "total": "yhteensä", diff --git a/locales/sv/common.json b/locales/sv/common.json index 8e640dc2..45e36d34 100644 --- a/locales/sv/common.json +++ b/locales/sv/common.json @@ -95,7 +95,7 @@ "next": "Nästa", "no-graph": "Inget diagram", "no-actions": "Inga åtgärder", - "operational": "Driftsindikator", + "operational-indicator": "Driftsindikator", "over-x-days": "Över {{days}} dagar", "page-not-found": "Sidan hittas inte", "percent-point-abbreviation": "p.p.", @@ -119,9 +119,9 @@ "search-no-results": "Inga resultat", "send": "Skicka", "skip-to-content": "Hoppa till huvudinnehåll", - "strategic": "Strategisk indikator", + "strategic-indicator": "Strategisk indikator", "supported-by": "Stöds av", - "tactical": "Taktisk indikator", + "tactical-indicator": "Taktisk indikator", "themes": "Teman", "to-reduce": "Kvar för att minska", "total": "totalt",