Skip to content

Commit

Permalink
added i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaJ2305 committed Oct 3, 2024
1 parent 0c17fe8 commit 3429a29
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 9 deletions.
10 changes: 8 additions & 2 deletions src/Components/Users/ManageUsers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,10 @@ export default function ManageUsers() {
{user.user_type === "Doctor" && (
<>
<div className="col-span-1">
<UserDetails id="qualification" title="Qualification">
<UserDetails
id="qualification"
title={t("qualification")}
>
{user.qualification ? (
<span className="font-semibold">
{user.qualification}
Expand Down Expand Up @@ -345,7 +348,10 @@ export default function ManageUsers() {
>
{user.user_type === "Nurse" && (
<div className="row-span-1">
<UserDetails id="qualification" title="Qualification">
<UserDetails
id="qualification"
title={t("qualification")}
>
{user.qualification ? (
<span className="font-semibold">
{user.qualification}
Expand Down
4 changes: 2 additions & 2 deletions src/Components/Users/UserAdd.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -663,8 +663,8 @@ export const UserAdd = (props: UserProps) => {
<TextFormField
{...field("qualification")}
required
label="Qualification"
placeholder="Qualification"
label={t("qualification")}
placeholder={t("qualification")}
/>
)}
{state.form.user_type === "Doctor" && (
Expand Down
4 changes: 2 additions & 2 deletions src/Components/Users/UserProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -744,8 +744,8 @@ export default function UserProfile() {
{...fieldProps("qualification")}
required
className="col-span-6 sm:col-span-3"
label="Qualification"
placeholder="Qualification"
label={t("qualification")}
placeholder={t("qualification")}
/>
)}
{states.form.user_type === "Doctor" && (
Expand Down
7 changes: 4 additions & 3 deletions src/Locale/en/Common.json
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@
"treating_doctor": "Treating Doctor",
"hubs": "Hub Facilities",
"spokes": "Spoke Facilities",
"add_spoke" : "Add Spoke Facility",
"add_spoke": "Add Spoke Facility",
"ration_card__NO_CARD": "Non-card holder",
"ration_card__BPL": "BPL",
"ration_card__APL": "APL",
Expand Down Expand Up @@ -232,5 +232,6 @@
"SORT_OPTIONS__bed__name": "Bed No. 1-N",
"SORT_OPTIONS__-bed__name": "Bed No. N-1",
"middleware_hostname": "Middleware Hostname",
"local_ipaddress": "Local IP Address"
}
"local_ipaddress": "Local IP Address",
"qualification": "Qualification"
}

0 comments on commit 3429a29

Please sign in to comment.