Skip to content

Commit

Permalink
Arjun | Tx for ipd (#1006)
Browse files Browse the repository at this point in the history
* Arjun | add translations for placeholders and texts

* add fr locale for ipd button

* add. note translation

---------

Co-authored-by: Kavitha S <kavitha.s@thoughtworks.com>
  • Loading branch information
Arjun-Go and kavitha-sundararajan authored Sep 27, 2024
1 parent c73136b commit f9efc51
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 23 deletions.
5 changes: 4 additions & 1 deletion micro-frontends/public/i18n/locale_en.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,8 @@
"SEARCH_REACTION": "Search Reaction",
"COMMON_REACTIONS": "Common Reactions",
"ALLERGEN": "Allergen",
"EDIT_FORM_ERROR_MESSAGE": "Please enter a value in the mandatory fields or correct the value in the highlighted fields to proceed"
"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"
}
37 changes: 20 additions & 17 deletions micro-frontends/public/i18n/locale_fr.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
{
"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"
"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"
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
} from "../../utils/providerNotifications/ProviderNotificationUtils";
import { verifierFunction} from "../../constants";
import PropTypes from "prop-types";
import { FormattedMessage } from "react-intl";

const PatientListContent = ({ patientMedicationDetails, providerUuid , refreshPatients}) => {
const [notes, setNotes] = useState("");
Expand Down Expand Up @@ -36,8 +37,8 @@ const PatientListContent = ({ patientMedicationDetails, providerUuid , refreshPa
<div className="notes">
<TextArea
className="patient-list-text-area"
labelText={<Title text={"Note"} isRequired={true} />}
placeholder="Enter Notes"
labelText={<Title text={<FormattedMessage id="NOTE" defaultMessage="Note" />} isRequired={true} />}
placeholder={<FormattedMessage id="ENTER_NOTES" defaultMessage="Enter Notes" />}
rows={1}
required={true}
value={notes}
Expand All @@ -48,7 +49,7 @@ const PatientListContent = ({ patientMedicationDetails, providerUuid , refreshPa
disabled={notes.trim() === ""}
onClick={handleOnClick}
>
Acknowledge
<FormattedMessage id="ACKNOWLEDGEMENT" defaultMessage="Acknowledge" />
</Button>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react'
import './ProviderNotifications.scss'
import PropTypes from 'prop-types';
import { ComboBox, Link } from 'carbon-components-react';
import { FormattedMessage } from 'react-intl';
import PatientsList from '../../Components/ProviderNotificationPatients/PatientsList';

Expand Down
4 changes: 3 additions & 1 deletion ui/app/i18n/clinical/locale_fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -360,5 +360,7 @@
"SHARE_PRESCRIPTION_MAIL_CONTENT": "Bonjour #nom du destinataire\nMerci d'avoir visité #Nom du lieu le #date de visite. Votre ordonnance est jointe à ce courriel. Nous vous souhaitons un prompt rétablissement.\nMerci.\n#Nom du lieu\n#Adresse du lieu",
"CHIEF_COMPLAINT_CODED_KEY": "Plainte principale codifiée",
"SIGN_SYMPTOM_DURATION_KEY": "Durée des signes/symptômes",
"CHIEF_COMPLAINT_DURATION_UNIT_KEY": "Durée de la plainte principale"
"CHIEF_COMPLAINT_DURATION_UNIT_KEY": "Durée de la plainte principale",
"IPD_BUTTON": "IPD",
"OPD_BUTTON": "OPD"
}

0 comments on commit f9efc51

Please sign in to comment.