From 2570fea929716a728419bf8c454bd6d82346ef8b Mon Sep 17 00:00:00 2001 From: Arjun-Go Date: Fri, 27 Sep 2024 21:20:17 +0530 Subject: [PATCH] addd. tx for next ui components --- micro-frontends/public/i18n/locale_en.json | 10 +++- micro-frontends/public/i18n/locale_fr.json | 48 +++++++++++-------- .../Components/AddAllergy/AddAllergy.jsx | 12 ++++- .../EditObservationForm.jsx | 5 +- .../ErrorNotification/ErrorNotification.jsx | 6 +++ .../SearchAllergen/SearchAllergen.jsx | 2 +- .../ViewAllergiesAndReactions.jsx | 2 +- .../PatientAlergiesControl.jsx | 4 +- .../ProviderNotifications.jsx | 4 +- micro-frontends/src/next-ui/utils/utils.js | 8 ++-- ui/app/images/cureLogoFull.png | 0 11 files changed, 68 insertions(+), 33 deletions(-) create mode 100755 ui/app/images/cureLogoFull.png diff --git a/micro-frontends/public/i18n/locale_en.json b/micro-frontends/public/i18n/locale_en.json index e6be8529b5..cb37e08644 100644 --- a/micro-frontends/public/i18n/locale_en.json +++ b/micro-frontends/public/i18n/locale_en.json @@ -18,5 +18,13 @@ "EDIT_FORM_ERROR_MESSAGE": "Please enter a value in the mandatory fields or correct the value in the highlighted fields to proceed", "ACKNOWLEDGEMENT":"Acknowledge", "ENTER_NOTES": "Enter Notes", - "NOTE": "Note" + "NOTE": "Note", + "ALLERGY_SAVED_SUCCESS":"Allergy saved successfully", + "ERROR_SAVING_ALLERGY":"Error saving allergy", + "ACKNOWLEDGEMENT_REQUIRED_TEXT": "Acknowledgement required", + "MALE":"Male", + "FEMALE": "Female", + "OTHER": "Other", + "ADDITIONAL_COMMENT_ALLERGY": "Additional comments such as onset date etc.", + "ALLERGEN_SEARCH_PLACEHOLDER": "Type to search Allergen" } diff --git a/micro-frontends/public/i18n/locale_fr.json b/micro-frontends/public/i18n/locale_fr.json index 2fe5e0c629..5847b86bc2 100644 --- a/micro-frontends/public/i18n/locale_fr.json +++ b/micro-frontends/public/i18n/locale_fr.json @@ -1,22 +1,30 @@ { - "NO_FORM": "Aucun formulaire trouvé pour ce patient....", - "DASHBOARD_TITLE_FORMS_2_DISPLAY_CONTROL_KEY": "Formulaires d'observations", - "LOADING_MESSAGE": "Chargement... Veuillez patienter", - "NO_ALLERGIES": "Aucune allergie enregistrée pour ce patient.", - "BACK_TO_ALLERGEN": "Retour à Allergies", - "ALLERGIES_HEADING": "Allergies et réactions", - "ALLERGIES_DISPLAY_CONTROL_HEADING": "Allergies", - "SEVERITY": "Gravité", - "SAVE": "Sauvegarder", - "CANCEL": "Annuler", - "NO_ALLERGENS_FOUND": "Aucun allergène trouvé", - "SEARCH_ALLERGEN": "Rechercher un allergène", - "REACTIONS": "Réaction(s)", - "SEARCH_REACTION": "Réaction à la recherche", - "COMMON_REACTIONS": "Réactions courantes", - "ALLERGEN": "Allergène", - "EDIT_FORM_ERROR_MESSAGE": "Veuillez saisir une valeur dans les champs obligatoires ou corriger la valeur dans les champs en surbrillance pour continuer", - "ACKNOWLEDGEMENT": "Reconnaître", - "ENTER_NOTES": "Saisir des notes", - "NOTE": "Note" + "NO_FORM": "Aucun formulaire trouvé pour ce patient....", + "DASHBOARD_TITLE_FORMS_2_DISPLAY_CONTROL_KEY": "Formulaires d'observations", + "LOADING_MESSAGE": "Chargement... Veuillez patienter", + "NO_ALLERGIES": "Aucune allergie enregistrée pour ce patient.", + "BACK_TO_ALLERGEN": "Retour à Allergies", + "ALLERGIES_HEADING": "Allergies et réactions", + "ALLERGIES_DISPLAY_CONTROL_HEADING": "Allergies", + "SEVERITY": "Gravité", + "SAVE": "Sauvegarder", + "CANCEL": "Annuler", + "NO_ALLERGENS_FOUND": "Aucun allergène trouvé", + "SEARCH_ALLERGEN": "Rechercher un allergène", + "REACTIONS": "Réaction(s)", + "SEARCH_REACTION": "Réaction à la recherche", + "COMMON_REACTIONS": "Réactions courantes", + "ALLERGEN": "Allergène", + "EDIT_FORM_ERROR_MESSAGE": "Veuillez saisir une valeur dans les champs obligatoires ou corriger la valeur dans les champs en surbrillance pour continuer", + "ACKNOWLEDGEMENT": "Reconnaître", + "ENTER_NOTES": "Saisir des notes", + "NOTE": "Note", + "ALLERGY_SAVED_SUCCESS": "Allergie enregistrée avec succès", + "ERROR_SAVING_ALLERGY": "Erreur lors de l'enregistrement de l'allergie", + "ACKNOWLEDGEMENT_REQUIRED_TEXT": "Accusé de réception requis", + "MALE": "Homme", + "FEMALE": "Femme", + "OTHER": "Autre", + "ADDITIONAL_COMMENT_ALLERGY": "Commentaires supplémentaires tels que la date d'apparition, etc.", + "ALLERGEN_SEARCH_PLACEHOLDER": "Saisissez pour rechercher un allergène" } diff --git a/micro-frontends/src/next-ui/Components/AddAllergy/AddAllergy.jsx b/micro-frontends/src/next-ui/Components/AddAllergy/AddAllergy.jsx index 47c0017444..3906e120e9 100644 --- a/micro-frontends/src/next-ui/Components/AddAllergy/AddAllergy.jsx +++ b/micro-frontends/src/next-ui/Components/AddAllergy/AddAllergy.jsx @@ -121,7 +121,10 @@ export function AddAllergy(props) {  * } key={"Severity"} onChange={(e) => { setSeverity(e); @@ -131,6 +134,7 @@ export function AddAllergy(props) { {severityOptions.map((option) => { return ( @@ -139,7 +143,11 @@ export function AddAllergy(props) {