From 744ab78c14d786311c6689d12029feb16dd42720 Mon Sep 17 00:00:00 2001 From: Amir Moghani Date: Mon, 15 Jun 2026 11:39:15 +0330 Subject: [PATCH] fix(profile): update allowed image formats and adjust file input accept attribute --- public/locales/en/setting.json | 2 +- public/locales/fa/setting.json | 2 +- .../userInformation/personalInformation/ProfileImage.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/public/locales/en/setting.json b/public/locales/en/setting.json index 65a6296..772b973 100644 --- a/public/locales/en/setting.json +++ b/public/locales/en/setting.json @@ -35,7 +35,7 @@ "or": "Or", "emailError": "Please enter a valid email.", "profilePicture": "User account image", - "allowedFormat": "Allowed formats: PNG, JPEG, GIF (maximum 10 MB)", + "allowedFormat": "Allowed formats: PNG, JPG, JPEG, GIF (maximum 10 MB)", "uploadPicture": "Upload image", "phoneNumberText": "Your new contact number will replace your previous contact number (<1>{{phoneNumber}})", "notDetermined": "Not determined", diff --git a/public/locales/fa/setting.json b/public/locales/fa/setting.json index 1fbb3d6..31db3be 100644 --- a/public/locales/fa/setting.json +++ b/public/locales/fa/setting.json @@ -35,7 +35,7 @@ "or": "یا", "emailError": "لطفا یک ایمیل معتبر وارد کنید", "profilePicture": "تصویر حساب کاربری", - "allowedFormat": "فرمت‌های مجاز: PNG، JPEG، GIF (حداکثر ۱۰ مگابایت)", + "allowedFormat": "فرمت‌های مجاز: PNG، JPG، JPEG، GIF (حداکثر ۱۰ مگابایت)", "uploadPicture": "بارگذاری تصویر", "phoneNumberText": "شماره تماس جدید شما جایگزین شماره قبلی (<1>{{phoneNumber}}) خواهد شد", "notDetermined": "تعیین نشده", diff --git a/src/features/profile/components/userInformation/personalInformation/ProfileImage.tsx b/src/features/profile/components/userInformation/personalInformation/ProfileImage.tsx index c234a73..bebb84f 100644 --- a/src/features/profile/components/userInformation/personalInformation/ProfileImage.tsx +++ b/src/features/profile/components/userInformation/personalInformation/ProfileImage.tsx @@ -89,7 +89,7 @@ export function ProfileImage({ : t('settingForm.uploadPicture')}