diff --git a/public/locales/en/authentication.json b/public/locales/en/authentication.json index faead09..6e016d2 100644 --- a/public/locales/en/authentication.json +++ b/public/locales/en/authentication.json @@ -7,7 +7,7 @@ "loginWithGoogle": "Login with google", "emailIsInvalid": "Email is invalid", "phoneNumberIsInvalid": "Phone number is invalid", - "thisFieldIsRequired": "This field is requried", + "thisFieldIsRequired": "This field is required", "googleAuthenticationFailed": "Login with google failed" }, "verify": { @@ -21,7 +21,8 @@ "youHaveSuccessfullySignedIn": "You have successfully signed in", "resendCodeIn": "Resend code in", "moreMinute": "minute", - "resendCode": "Resend code" + "resendCode": "Resend code", + "confirmAndLogin": "Confirm & login" }, "completeSignUp": { "completeSignUp": "Complete Sign Up", @@ -61,4 +62,4 @@ "redirectingTo": "Redirecting to", "redirecting": "Redirecting..." } -} +} \ No newline at end of file diff --git a/public/locales/en/setting.json b/public/locales/en/setting.json index f80413c..16fc6fe 100644 --- a/public/locales/en/setting.json +++ b/public/locales/en/setting.json @@ -14,6 +14,7 @@ "addEmailButton": "Add email", "name": "Name", "familyName": "Family Name", + "fullName": "Full Name", "country": "Country", "gender": "Gender", "nationalCode": "National code", diff --git a/public/locales/fa/setting.json b/public/locales/fa/setting.json index b49f924..5cd90b1 100644 --- a/public/locales/fa/setting.json +++ b/public/locales/fa/setting.json @@ -14,6 +14,7 @@ "addEmailButton": "افزودن ایمیل", "name": "نام", "familyName": "نام خانوادگی", + "fullName": "نام و نام خانوادگی", "country": "کشور", "gender": "جنسیت", "nationalCode": "کد ملی", diff --git a/src/features/authentication/components/AuthenticationSteps/EnterPasswordForm.tsx b/src/features/authentication/components/AuthenticationSteps/EnterPasswordForm.tsx index 1c03e69..e66f673 100644 --- a/src/features/authentication/components/AuthenticationSteps/EnterPasswordForm.tsx +++ b/src/features/authentication/components/AuthenticationSteps/EnterPasswordForm.tsx @@ -1,6 +1,6 @@ import { useRef, useState } from 'react'; import { AuthenticationCard } from '../AuthenticationCard'; -import { ArrowLeft, Edit2, Eye, EyeSlash } from 'iconsax-react'; +import { ArrowLeft, ArrowRight, Edit2, Eye, EyeSlash } from 'iconsax-react'; import { Box, Button, @@ -51,7 +51,7 @@ export const EnterPasswordForm = ({ countryCode, authFactory, }: EnterPasswordFormProps) => { - const { t } = useTranslation('authentication'); + const { t, i18n } = useTranslation('authentication'); const [passValue, setPassValue] = useState(''); const [inputTouched, setInputTouched] = useState(false); const [showPassword, setShowPassword] = useState(false); @@ -184,7 +184,9 @@ export const EnterPasswordForm = ({ sx={{ width: 'auto', mb: 2 }} variant="text" loading={emailResendLoading || smsResendLoading} - endIcon={} + endIcon={ + + } > {t('enterPassword.loginWithOneTimeCode')} diff --git a/src/features/authentication/components/AuthenticationSteps/LoginRegiserForm.tsx b/src/features/authentication/components/AuthenticationSteps/LoginRegiserForm.tsx index 05037af..159f6cb 100644 --- a/src/features/authentication/components/AuthenticationSteps/LoginRegiserForm.tsx +++ b/src/features/authentication/components/AuthenticationSteps/LoginRegiserForm.tsx @@ -42,7 +42,7 @@ export function LoginRegisterForm({ onGoogleAuthenticated, authFactory, }: LoginRegisterFormProps) { - const { t } = useTranslation('authentication'); + const { t, i18n } = useTranslation('authentication'); const textFieldRef = useRef(null); const inputRef = useRef(null); const [error, setError] = useState(); @@ -167,7 +167,16 @@ export function LoginRegisterForm({ slotProps={{ htmlInput: { dir: 'auto', sx: { lineHeight: 1.5 } }, input: { - endAdornment: ( + endAdornment: i18n.dir() === 'rtl' && ( + + ), + startAdornment: i18n.dir() === 'ltr' && ( (null); const menuWidth = menuAnchor ? menuAnchor.clientWidth : 'auto'; - const { t, i18n } = useTranslation(['country', 'common']); + const { t } = useTranslation(['country', 'common']); const selectedCountry = countries.find((c) => c.phone === value) || countries[0]; @@ -83,7 +83,7 @@ export function CountryCodeSelector({ return ( - + {value} - + - {t('settingForm.name')} و {t('settingForm.familyName')} + {t('settingForm.fullName')}