[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

@ -1525,6 +1525,47 @@ export default {
"Jeśli potwierdzisz, wszystkie opcje sortowania, filtrowania i wyświetlania + układ, który wybrałeś dla tego widoku, zostaną trwale usunięte bez możliwości przywrócenia.",
},
},
account_settings: {
profile: {
change_email_modal: {
title: "Zmień e-mail",
description: "Wpisz nowy adres e-mail, aby otrzymać link weryfikacyjny.",
toasts: {
success_title: "Sukces!",
success_message: "E-mail zaktualizowano. Zaloguj się ponownie.",
},
form: {
email: {
label: "Nowy e-mail",
placeholder: "Wpisz swój e-mail",
errors: {
required: "E-mail jest wymagany",
invalid: "E-mail jest nieprawidłowy",
exists: "E-mail już istnieje. Użyj innego.",
validation_failed: "Weryfikacja e-maila nie powiodła się. Spróbuj ponownie.",
},
},
code: {
label: "Unikalny kod",
placeholder: "gets-sets-flys",
helper_text: "Kod weryfikacyjny wysłano na nowy e-mail.",
errors: {
required: "Unikalny kod jest wymagany",
invalid: "Nieprawidłowy kod weryfikacyjny. Spróbuj ponownie.",
},
},
},
actions: {
continue: "Kontynuuj",
confirm: "Potwierdź",
cancel: "Anuluj",
},
states: {
sending: "Wysyłanie…",
},
},
},
},
workspace_settings: {
label: "Ustawienia przestrzeni roboczej",
page_label: "{workspace} - Ustawienia ogólne",