diff --git a/components/CreateFormStatus.tsx b/components/CreateFormStatus.tsx
index 8bffc04..e968fe7 100644
--- a/components/CreateFormStatus.tsx
+++ b/components/CreateFormStatus.tsx
@@ -1,11 +1,16 @@
import React from 'react'
import styles from '../styles/Components/create-form-status.module.css'
+import useLangStore from '../utils/store'
+import langSt from '../utils/uiText.json'
type CreateFormStatusType = {
currentStep: number
}
const CreateFormStatus = ({ currentStep }: CreateFormStatusType) => {
+ const language = useLangStore((state) => state.language)
+ const isLangGuj = language === 'gj'
+
return (
@@ -37,7 +42,7 @@ const CreateFormStatus = ({ currentStep }: CreateFormStatusType) => {
color: `rgba(0,0,0,${currentStep === 1 ? '0.85' : '0.45'})`,
}}
>
- Scheme Details
+ {isLangGuj ? langSt.gj.schemeDetails : langSt.en.schemeDetails}
@@ -47,7 +52,9 @@ const CreateFormStatus = ({ currentStep }: CreateFormStatusType) => {
color: `rgba(0,0,0,${currentStep === 2 ? '0.85' : '0.45'})`,
}}
>
- Scheme Eligibility Criteria
+ {isLangGuj
+ ? langSt.gj.schemeEligibility
+ : langSt.en.schemeEligibility}
diff --git a/components/CustomInput.tsx b/components/CustomInput.tsx
index d8dad85..44709fe 100644
--- a/components/CustomInput.tsx
+++ b/components/CustomInput.tsx
@@ -1,6 +1,7 @@
import React from 'react'
import { DatePicker, Input, Select } from 'antd'
import styles from '../styles/Components/CustomInput.module.css'
+import useLangStore from '../utils/store'
const { Option } = Select
const { TextArea } = Input
@@ -14,6 +15,10 @@ interface IProps {
}
const CustomInput = ({ placeholder, type, data, label, onChange }: IProps) => {
+ const language = useLangStore((state) => state.language)
+
+ const isLangGuj = language === 'gj'
+
return (
@@ -23,17 +28,18 @@ const CustomInput = ({ placeholder, type, data, label, onChange }: IProps) => {
placeholder={placeholder}
className={styles.input__element__comp}
onChange={onChange}
- />
- ) : null}
+ />
+ ) : null}
{type === 'date' ? (
- ) : null}
+ ) : null}
{type === 'drop-down' ? (