diff --git a/src/Components/ABDM/LinkAbhaNumber/LinkWithOtp.tsx b/src/Components/ABDM/LinkAbhaNumber/LinkWithOtp.tsx index 546eb6311d1..0806b5704db 100644 --- a/src/Components/ABDM/LinkAbhaNumber/LinkWithOtp.tsx +++ b/src/Components/ABDM/LinkAbhaNumber/LinkWithOtp.tsx @@ -7,7 +7,6 @@ import { classNames } from "../../../Utils/utils"; import ButtonV2 from "../../Common/components/ButtonV2"; import Dropdown, { DropdownItem } from "../../Common/components/Menu"; import OtpFormField from "../../Form/FormFields/OtpFormField"; -import { capitalize } from "lodash-es"; import * as Notify from "../../../Utils/Notifications"; import request from "../../../Utils/request/request"; import routes from "../../../Redux/api"; @@ -201,7 +200,7 @@ function EnterId({ memory, setMemory, next }: IEnterIdProps) { > {authMethods.map((method) => ( handleSendOtp(method)}> - {capitalize(method.replace(/_/g, " "))} + {t(`abha__auth_method__${method}`)} ))} diff --git a/src/Locale/en/ABDM.json b/src/Locale/en/ABDM.json index d48c53be19f..40b0b6c7778 100644 --- a/src/Locale/en/ABDM.json +++ b/src/Locale/en/ABDM.json @@ -47,7 +47,7 @@ "link_abha_disclaimer": "I declare that the ABHA No. of the patient is voluntarily provided by the patient (or guardian or nominee of the patient).", "any_id": "Enter any ID linked with your ABHA number", "enter_any_id": "Enter any ID linked with your ABHA number", - "any_id_description": "Currently we support, Abha Number / Aadhaar Number / Mobile Number / Abha Address", + "any_id_description": "Currently we support, Aadhaar Number / Mobile Number", "enter_otp": "Enter OTP sent to the registered mobile with the respective ID", "verify_and_link": "Verify and Link", "get_auth_methods": "Get Available Authentication Methods", @@ -127,5 +127,7 @@ "downloading_abha_card": "Generating ABHA Card, Please hold on", "abha_profile": "ABHA Profile", "show_abha_profile": "Show ABHA Profile", - "link_abha_profile": "Link ABHA Profile" + "link_abha_profile": "Link ABHA Profile", + "abha__auth_method__AADHAAR_OTP": "Aadhaar OTP", + "abha__auth_method__MOBILE_OTP": "Mobile OTP" }