From ff2a97ba672bcd456dfe826ac7d7e678ee52aea5 Mon Sep 17 00:00:00 2001 From: Thomas Zemp Date: Fri, 15 Dec 2023 10:12:49 +0100 Subject: [PATCH] fix: add/handle missing property translations [DHIS2-11316] (#849) --- src/i18n.js | 8 ++++++++ src/pages/Translations/TranslationCard.js | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/i18n.js b/src/i18n.js index 17ee593e..d187356d 100644 --- a/src/i18n.js +++ b/src/i18n.js @@ -37,6 +37,14 @@ export const i18nKeys = { actionButton: { label: 'Save', }, + domainAxisLabel: 'Domain axis label', + rangeAxisLabel: 'Range axis label', + targetLineLabel: 'Target line label', + subtitle: 'Subtitle', + title: 'Title', + baseLineLabel: 'Base line label', + subjectTemplate: 'Subject template', + messageTemplate: 'Message template', }, messages: { unsavedChanges: diff --git a/src/pages/Translations/TranslationCard.js b/src/pages/Translations/TranslationCard.js index c84b0da4..ff788b03 100644 --- a/src/pages/Translations/TranslationCard.js +++ b/src/pages/Translations/TranslationCard.js @@ -107,7 +107,7 @@ const TranslationCard = (props) => { label={i18n.t( i18nKeys.translationForm[ property.name - ] + ] ?? property.name )} onChange={onChange( property.translationKey