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

Commit

Permalink
feat(i8ln): add missing translations
Browse files Browse the repository at this point in the history
  • Loading branch information
jackcmeyer committed Mar 10, 2020
1 parent b6e66c5 commit 008cb5f
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 139 deletions.
136 changes: 0 additions & 136 deletions src/locales/en-US/translation.json

This file was deleted.

27 changes: 27 additions & 0 deletions src/locales/enUs/translations/patient/index.ts
Expand Up @@ -32,6 +32,33 @@ export default {
new: 'New Related Person',
relationshipType: 'Relationship Type',
},
allergies: {
label: 'Allergies',
new: 'Add Allergy',
error: {
nameRequired: 'Name is required.',
},
warning: {
noAllergies: 'No Allergies',
},
addAllergyAbove: 'Add an allergy using the button above.',
successfullyAdded: 'Successfully added a new allergy!',
},
diagnoses: {
label: 'Diagnoses',
new: 'Add Diagnoses',
diagnosisName: 'Diagnosis Name',
diagnosisDate: 'Diagnosis Date',
warning: {
noDiagnoses: 'No Diagnoses',
},
error: {
nameRequired: 'Diagnosis Name is required.',
dateRequired: 'Diagnosis Date is required.',
},
addDiagnosisAbove: 'Add a diagnosis using the button above.',
successfullyAdded: 'Successfully added a new diagnosis!',
},
types: {
charity: 'Charity',
private: 'Private',
Expand Down
2 changes: 1 addition & 1 deletion src/scheduling/appointments/Appointments.tsx
Expand Up @@ -36,7 +36,7 @@ const Appointments = () => {
icon="appointment-add"
onClick={() => history.push('/appointments/new')}
>
{t('scheduling.appointments.newAppointment')}
{t('scheduling.appointments.new')}
</Button>,
])
useAddBreadcrumbs(breadcrumbs, true)
Expand Down
4 changes: 2 additions & 2 deletions src/scheduling/appointments/new/NewAppointment.tsx
Expand Up @@ -14,14 +14,14 @@ import AppointmentDetailForm from '../AppointmentDetailForm'

const breadcrumbs = [
{ i18nKey: 'scheduling.appointments.label', location: '/appointments' },
{ i18nKey: 'scheduling.appointments.newAppointment', location: '/appointments/new' },
{ i18nKey: 'scheduling.appointments.new', location: '/appointments/new' },
]

const NewAppointment = () => {
const { t } = useTranslation()
const history = useHistory()
const dispatch = useDispatch()
useTitle(t('scheduling.appointments.newAppointment'))
useTitle(t('scheduling.appointments.new'))
useAddBreadcrumbs(breadcrumbs, true)
const startDateTime = roundToNearestMinutes(new Date(), { nearestTo: 15 })
const endDateTime = addMinutes(startDateTime, 60)
Expand Down

0 comments on commit 008cb5f

Please sign in to comment.