From 8b92487f6e8683157daae02fcbb616a54ec8d150 Mon Sep 17 00:00:00 2001 From: Mahyar Khanbolooki Date: Thu, 24 Jul 2025 16:08:58 +0330 Subject: [PATCH] fix: auth page locale --- src/features/auth/components/StepEnterNumber.tsx | 2 +- src/features/auth/components/StepEnterOtp.tsx | 2 +- src/features/auth/components/StepEnterPassword.tsx | 2 +- src/features/auth/components/StepNewPassword.tsx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/features/auth/components/StepEnterNumber.tsx b/src/features/auth/components/StepEnterNumber.tsx index 07cd928..df0d509 100644 --- a/src/features/auth/components/StepEnterNumber.tsx +++ b/src/features/auth/components/StepEnterNumber.tsx @@ -15,7 +15,7 @@ type Props = { function StepEnterNumber({ onChange, pending, disabled, value }: Props) { const [error, setError] = useState(''); - const { t } = useTranslation(); + const { t } = useTranslation('auth'); const hasError = (e = error) => { return e.trim().length > 0 diff --git a/src/features/auth/components/StepEnterOtp.tsx b/src/features/auth/components/StepEnterOtp.tsx index 6472c01..3f06f00 100644 --- a/src/features/auth/components/StepEnterOtp.tsx +++ b/src/features/auth/components/StepEnterOtp.tsx @@ -18,7 +18,7 @@ type Props = { function StepEnterOtp({ onChange, onClick, pending, disabled = false, value, phoneNumber, timerRunning, secondsLeft }: Props) { const [error, setError] = useState(''); - const { t } = useTranslation(); + const { t } = useTranslation('auth'); const hasError = (e = error) => { return e.trim().length > 0 diff --git a/src/features/auth/components/StepEnterPassword.tsx b/src/features/auth/components/StepEnterPassword.tsx index b5abb9c..77c553d 100644 --- a/src/features/auth/components/StepEnterPassword.tsx +++ b/src/features/auth/components/StepEnterPassword.tsx @@ -17,7 +17,7 @@ type Props = { function StepEnterPassword({ onChange, onClick, pending, disabled = false, value, passwordVisible, rememberMe }: Props) { const [error, setError] = useState(''); - const { t } = useTranslation(); + const { t } = useTranslation('auth'); const hasError = (e = error) => { return e.trim().length > 0 diff --git a/src/features/auth/components/StepNewPassword.tsx b/src/features/auth/components/StepNewPassword.tsx index a334d73..4e133f6 100644 --- a/src/features/auth/components/StepNewPassword.tsx +++ b/src/features/auth/components/StepNewPassword.tsx @@ -20,7 +20,7 @@ type Props = { function StepNewPassword({ isReset: reset = false, pending, disabled = false, onChange, onClick, value, repeatValue, passwordVisible, repeatPasswordVisible }: Props) { const [error, setError] = useState(''); const [error2, setError2] = useState(''); - const { t } = useTranslation(); + const { t } = useTranslation('auth'); const hasError = (e = error) => { return e.trim().length > 0