From ae9095bbc9e2a6ba62d3e86c4b63ca585d440f5c Mon Sep 17 00:00:00 2001 From: "S.Adithya Vardhan" <168300867+Adiflickzzz@users.noreply.github.com> Date: Fri, 30 Aug 2024 12:39:18 +0530 Subject: [PATCH] issue #8442 : Moved the text to i18n format --- .env | 2 -- .../Common/prescription-builder/ProcedureBuilder.tsx | 4 +++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.env b/.env index 7a17a1bb9b4..b29ee25a151 100644 --- a/.env +++ b/.env @@ -11,5 +11,3 @@ ESLINT_NO_DEV_ERRORS=true CARE_CDN_URL="https://egov-s3-facility-10bedicu.s3.amazonaws.com https://egov-s3-patient-data-10bedicu.s3.amazonaws.com http://localhost:4566" -#.env -CARE_API=http://127.0.0.1:9000 \ No newline at end of file diff --git a/src/Components/Common/prescription-builder/ProcedureBuilder.tsx b/src/Components/Common/prescription-builder/ProcedureBuilder.tsx index 0377dea73cd..6de2454764d 100644 --- a/src/Components/Common/prescription-builder/ProcedureBuilder.tsx +++ b/src/Components/Common/prescription-builder/ProcedureBuilder.tsx @@ -1,6 +1,7 @@ import { useState } from "react"; import { PrescriptionDropdown } from "./PrescriptionDropdown"; import CareIcon from "../../../CAREUI/icons/CareIcon"; +import { useTranslation } from "react-i18next"; export type ProcedureType = { procedure?: string; @@ -33,6 +34,7 @@ export default function ProcedureBuilder(props: Props) { procedures.map((procedure, index) => (index === i ? object : procedure)), ); }; + const { t } = useTranslation(); return (
@@ -64,7 +66,7 @@ export default function ProcedureBuilder(props: Props) {
- Procedure Suggestions + {t("Procedure Suggestions")} {" *"}