From 1deca332569d7affc683d49b5da0c33b88cf49ce Mon Sep 17 00:00:00 2001 From: Thomas Zemp Date: Thu, 14 Dec 2023 15:00:17 +0100 Subject: [PATCH] fix: add/handle missing property translations [DHIS2-11316] --- 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