From 20c79dde978a7b5a5d6912e96d4fc112e86ffd89 Mon Sep 17 00:00:00 2001
From: Thomas Zemp <tom@dhis2.org>
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 f8dbac1f..685801de 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