[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:
Bavisetti Narayan 2025-11-24 21:21:52 +05:30 committed by GitHub
parent d6fce114d6
commit ce6299937f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
27 changed files with 2457 additions and 5 deletions

View file

@ -1542,6 +1542,47 @@ export default {
"Se você confirmar, todas as opções de classificação, filtro e exibição + o layout que você escolheu para esta visualização serão excluídos permanentemente sem nenhuma maneira de restaurá-los.",
},
},
account_settings: {
profile: {
change_email_modal: {
title: "Alterar e-mail",
description: "Digite um novo endereço de e-mail para receber um link de verificação.",
toasts: {
success_title: "Sucesso!",
success_message: "E-mail atualizado com sucesso. Faça login novamente.",
},
form: {
email: {
label: "Novo e-mail",
placeholder: "Digite seu e-mail",
errors: {
required: "O e-mail é obrigatório",
invalid: "O e-mail é inválido",
exists: "O e-mail já existe. Use outro.",
validation_failed: "Falha na validação do e-mail. Tente novamente.",
},
},
code: {
label: "Código único",
placeholder: "gets-sets-flys",
helper_text: "Código de verificação enviado para o novo e-mail.",
errors: {
required: "O código único é obrigatório",
invalid: "Código de verificação inválido. Tente novamente.",
},
},
},
actions: {
continue: "Continuar",
confirm: "Confirmar",
cancel: "Cancelar",
},
states: {
sending: "Enviando…",
},
},
},
},
workspace_settings: {
label: "Configurações do espaço de trabalho",
page_label: "{workspace} - Configurações gerais",