[WEB-5430] feat: allow users to change email (#8120)
* feat: change user email * chore: optimised the logic * feat: add email change functionality and related modals in profile form * refactor: format checkEmail method for improved readability * chore: added rate limit exceeded validation * feat: implement change email modal with localization support - Added translation support for the change email modal, including titles, descriptions, and error messages. - Integrated the useTranslation hook for dynamic text rendering. - Updated form validation messages to utilize localized strings. - Enhanced user feedback with localized success and error toast messages. - Updated button labels and placeholders to reflect localization changes. * chore: added extra validation in cache key * fix: format files --------- Co-authored-by: b-saikrishnakanth <bsaikrishnakanth97@gmail.com> Co-authored-by: sriramveeraghanta <veeraghanta.sriram@gmail.com>
This commit is contained in:
parent
d6fce114d6
commit
ce6299937f
27 changed files with 2457 additions and 5 deletions
|
|
@ -1527,6 +1527,47 @@ export default {
|
|||
"При подтверждении все параметры сортировки, фильтрации и отображения + макет, выбранный для этого представления, будут безвозвратно удалены без возможности восстановления.",
|
||||
},
|
||||
},
|
||||
account_settings: {
|
||||
profile: {
|
||||
change_email_modal: {
|
||||
title: "Изменить email",
|
||||
description: "Введите новый адрес электронной почты, чтобы получить ссылку для подтверждения.",
|
||||
toasts: {
|
||||
success_title: "Успех!",
|
||||
success_message: "Email успешно обновлён. Пожалуйста, войдите снова.",
|
||||
},
|
||||
form: {
|
||||
email: {
|
||||
label: "Новый email",
|
||||
placeholder: "Введите свой email",
|
||||
errors: {
|
||||
required: "Email обязателен",
|
||||
invalid: "Email недействителен",
|
||||
exists: "Email уже существует. Используйте другой.",
|
||||
validation_failed: "Не удалось подтвердить email. Попробуйте ещё раз.",
|
||||
},
|
||||
},
|
||||
code: {
|
||||
label: "Уникальный код",
|
||||
placeholder: "gets-sets-flys",
|
||||
helper_text: "Код подтверждения отправлен на ваш новый email.",
|
||||
errors: {
|
||||
required: "Уникальный код обязателен",
|
||||
invalid: "Неверный код подтверждения. Попробуйте ещё раз.",
|
||||
},
|
||||
},
|
||||
},
|
||||
actions: {
|
||||
continue: "Продолжить",
|
||||
confirm: "Подтвердить",
|
||||
cancel: "Отмена",
|
||||
},
|
||||
states: {
|
||||
sending: "Отправка…",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
workspace_settings: {
|
||||
label: "Настройки пространства",
|
||||
page_label: "{workspace} - Основные настройки",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue