Skip to content

Commit

Permalink
update auth methods i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
khavinshankar committed Sep 3, 2024
1 parent f19cd62 commit 046c3bd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/Components/ABDM/LinkAbhaNumber/LinkWithOtp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -201,7 +200,7 @@ function EnterId({ memory, setMemory, next }: IEnterIdProps) {
>
{authMethods.map((method) => (
<DropdownItem key={method} onClick={() => handleSendOtp(method)}>
{capitalize(method.replace(/_/g, " "))}
{t(`abha__auth_method__${method}`)}
</DropdownItem>
))}
</Dropdown>
Expand Down
6 changes: 4 additions & 2 deletions src/Locale/en/ABDM.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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"
}

0 comments on commit 046c3bd

Please sign in to comment.