Merge branch 'feature/notification_components' into 'develop'

notifications transalte

See merge request witel3/loan-facilities-expert!20
This commit is contained in:
yasaman aliakbari
2023-07-12 10:58:41 +00:00
2 changed files with 16 additions and 6 deletions

View File

@@ -70,11 +70,21 @@
"typography_edit_profile": "ویرایش پروفایل",
"text_field_email": "ایمیل",
"text_field_enter_your_password": "رمز عبور خود را وارد کنید",
"text_field_username":"نام کاربری",
"text_field_name":"نام",
"text_field_phone_number":"شماره تماس",
"text_field_position":"سمت",
"text_field_province_name":"نام استان",
"text_field_username": "نام کاربری",
"text_field_name": "نام",
"text_field_phone_number": "شماره تماس",
"text_field_position": "سمت",
"text_field_province_name": "نام استان",
"error_message_required": "اجباری !"
},
"notifications": {
"code": "کد",
"error": "خطا",
"warning": "خطر",
"success": "موفق",
"error_static_text": "عملیات شما با خطا مواجه شد",
"warning_static_text": "خطا سرور",
"success_static_text": "عملیات شما با موفقیت انجام شد",
"pending":"در حال انجام..."
}
}

View File

@@ -28,7 +28,7 @@ const DashboardChangePasswordComponent = () => {
const handleSubmit = (values, { setSubmitting, resetForm }) => {
toast.dismiss();
const pendingToast = toast("Pending...", {
const pendingToast = toast(t("notifications.pending"), {
position: directionApp === "ltr" ? "top-left" : "top-right",
autoClose: false,
closeOnClick: false,