Skip to content

Commit

Permalink
fix: add/handle missing property translations [DHIS2-11316] (#851)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomzemp authored Dec 18, 2023
1 parent 7c894f2 commit d057079
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Translations/TranslationCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ const TranslationCard = (props) => {
label={i18n.t(
i18nKeys.translationForm[
property.name
]
] ?? property.name
)}
onChange={onChange(
property.translationKey
Expand Down

0 comments on commit d057079

Please sign in to comment.