From 94f1df4d43dc0af60028546f33672a9eafa75108 Mon Sep 17 00:00:00 2001 From: Vineet Sharma Date: Tue, 11 Jun 2024 17:31:37 +0530 Subject: [PATCH] (fix) O3-3398: Combine the translation for Create New Patient/ Edit Patient (#1186) * Combined the translation for Create New Patient/ Edit Patient * Use proper casing for translation value * Fixup --------- Co-authored-by: Dennis Kigen --- .../patient-registration.component.tsx | 8 +++++--- .../src/patient-registration/patient-registration.scss | 5 ++--- .../patient-registration/patient-registration.test.tsx | 10 +++++----- .../esm-patient-registration-app/translations/en.json | 4 +--- 4 files changed, 13 insertions(+), 14 deletions(-) diff --git a/packages/esm-patient-registration-app/src/patient-registration/patient-registration.component.tsx b/packages/esm-patient-registration-app/src/patient-registration/patient-registration.component.tsx index 9a35942d3..15c7e85f5 100644 --- a/packages/esm-patient-registration-app/src/patient-registration/patient-registration.component.tsx +++ b/packages/esm-patient-registration-app/src/patient-registration/patient-registration.component.tsx @@ -159,7 +159,9 @@ export const PatientRegistration: React.FC = ({ savePa

- {inEditMode ? t('edit', 'Edit') : t('createNew', 'Create New')} {t('patient', 'Patient')} + {inEditMode + ? t('editPatientDetails', 'Edit patient details') + : t('createNewPatient', 'Create new patient')}

{showDummyData && }

{t('jumpTo', 'Jump to')}

@@ -186,9 +188,9 @@ export const PatientRegistration: React.FC = ({ savePa status="active" /> ) : inEditMode ? ( - t('updatePatient', 'Update Patient') + t('updatePatient', 'Update patient') ) : ( - t('registerPatient', 'Register Patient') + t('registerPatient', 'Register patient') )}