diff --git a/src/locales/en-US/translation.json b/src/locales/en-US/translation.json deleted file mode 100644 index 2fdb15464a..0000000000 --- a/src/locales/en-US/translation.json +++ /dev/null @@ -1,136 +0,0 @@ -{ - "dashboard": { - "label": "Dashboard" - }, - "patients": { - "label": "Patients", - "viewPatients": "View Patients", - "viewPatient": "View Patient", - "newPatient": "New Patient", - "editPatient": "Edit Patient", - "successfullyCreated": "Successfully created patient", - "successfullyUpdated": "Successfully updated patient" - }, - "patient": { - "suffix": "Suffix", - "prefix": "Prefix", - "givenName": "Given Name", - "familyName": "Family Name", - "dateOfBirth": "Date of Birth", - "approximateDateOfBirth": "Approximate Date of Birth", - "age": "Age", - "approximateAge": "Approximate Age", - "placeOfBirth": "Place of Birth", - "sex": "Sex", - "phoneNumber": "Phone Number", - "email": "Email", - "address": "Address", - "occupation": "Occupation", - "type": "Patient Type", - "preferredLanguage": "Preferred Language", - "basicInformation": "Basic Information", - "generalInformation": "General Information", - "contactInformation": "Contact Information", - "unknownDateOfBirth": "Unknown", - "relatedPerson": "Related Person", - "relatedPersons": { - "error": { - "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", - "addRelatedPersonAbove": "Add a related person using the button above.", - "successfullyAdded": "Successfully added a new related person!" - }, - "types": { - "charity": "Charity", - "private": "Private" - }, - "errors": { - "patientGivenNameRequired": "Patient Given Name is required." - }, - "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!" - } - }, - "sex": { - "male": "Male", - "female": "Female", - "other": "Other", - "unknown": "Unknown" - }, - "actions": { - "edit": "Edit", - "save": "Save", - "cancel": "Cancel", - "new": "New", - "list": "List", - "search": "Search", - "delete": "Delete", - "confirmDelete": "Confirm Delete" - }, - "states": { - "success": "Success!", - "error": "Error!" - }, - "scheduling": { - "label": "Scheduling", - "appointments": { - "label": "Appointments", - "newAppointment": "New Appointment", - "editAppointment": "Edit Appointment", - "viewAppointment": "View Appointment", - "deleteAppointment": "Delete Appointment", - "successfullyDeleted": "Successfully deleted appointment!" - }, - "appointment": { - "startDate": "Start Date", - "endDate": "End Date", - "location": "Location", - "type": "Type", - "types": { - "checkup": "Checkup", - "emergency": "Emergency", - "followUp": "Follow Up", - "routine": "Routine", - "walkIn": "Walk In" - }, - "errors": { - "patientRequired": "Patient is required.", - "startDateMustBeBeforeEndDate": "Start Time must be before End Time." - }, - "reason": "Reason", - "patient": "Patient", - "deleteConfirmationMessage": "Are you sure you want to delete this appointment?" - } - } -} diff --git a/src/locales/enUs/translations/patient/index.ts b/src/locales/enUs/translations/patient/index.ts index a48a033d85..5605dc712a 100644 --- a/src/locales/enUs/translations/patient/index.ts +++ b/src/locales/enUs/translations/patient/index.ts @@ -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', diff --git a/src/scheduling/appointments/Appointments.tsx b/src/scheduling/appointments/Appointments.tsx index 6d40df2996..f152f49507 100644 --- a/src/scheduling/appointments/Appointments.tsx +++ b/src/scheduling/appointments/Appointments.tsx @@ -36,7 +36,7 @@ const Appointments = () => { icon="appointment-add" onClick={() => history.push('/appointments/new')} > - {t('scheduling.appointments.newAppointment')} + {t('scheduling.appointments.new')} , ]) useAddBreadcrumbs(breadcrumbs, true) diff --git a/src/scheduling/appointments/new/NewAppointment.tsx b/src/scheduling/appointments/new/NewAppointment.tsx index 1d87fe14c6..b0dddfc7a4 100644 --- a/src/scheduling/appointments/new/NewAppointment.tsx +++ b/src/scheduling/appointments/new/NewAppointment.tsx @@ -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)