Skip to content

Commit

Permalink
fix: add/handle missing property translations [DHIS2-11316] (#849)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomzemp committed Dec 15, 2023
1 parent 6f21b3c commit 22ba49b
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 22ba49b

Please sign in to comment.