Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
fix(patients): internationalize No Related Persons warning & loading
Browse files Browse the repository at this point in the history
  • Loading branch information
archwheeler committed Feb 8, 2020
1 parent da6bdb1 commit 099e50d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
9 changes: 7 additions & 2 deletions src/locales/en-US/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,13 @@
"relatedPersonRequired": "Related Person is required.",
"relationshipTypeRequired": "Relationship Type is required."
},
"warning": {
"noRelatedPersons": "No Related Persons"
},
"label": "Related Persons",
"new": "New Related Person",
"relationshipType": "Relationship Type"
"relationshipType": "Relationship Type",
"addRelatedPersonAbove": "Add a related person using the button above."
},
"types": {
"charity": "Charity",
Expand All @@ -66,7 +70,8 @@
},
"states": {
"success": "Success!",
"error": "Error!"
"error": "Error!",
"loading": "Loading..."
},
"scheduling": {
"label": "Scheduling",
Expand Down
6 changes: 3 additions & 3 deletions src/patients/related-persons/RelatedPersonTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,12 @@ const RelatedPersonTab = (props: Props) => {
) : (
<Alert
color="warning"
title="No Related Persons"
message="Add a related person using the button above."
title={t('patient.relatedPersons.warning.noRelatedPersons')}
message={t('patient.relatedPersons.addRelatedPersonAbove')}
/>
)
) : (
<h1>Loading...</h1>
<h1>{t('states.loading')}</h1>
)}
</Panel>
</div>
Expand Down

0 comments on commit 099e50d

Please sign in to comment.