[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

@ -1522,6 +1522,47 @@ export default {
"Pokud potvrdíte, všechny možnosti řazení, filtrování a zobrazení + rozvržení, které jste vybrali pro tento pohled, budou trvale odstraněny a nelze je obnovit.",
},
},
account_settings: {
profile: {
change_email_modal: {
title: "Změnit e-mail",
description: "Zadejte novou e-mailovou adresu a obdržíte ověřovací odkaz.",
toasts: {
success_title: "Úspěch!",
success_message: "E-mail byl úspěšně aktualizován. Přihlaste se znovu.",
},
form: {
email: {
label: "Nový e-mail",
placeholder: "Zadejte svůj e-mail",
errors: {
required: "E-mail je povinný",
invalid: "E-mail je neplatný",
exists: "E-mail již existuje. Použijte jiný.",
validation_failed: "Ověření e-mailu se nezdařilo. Zkuste to znovu.",
},
},
code: {
label: "Jedinečný kód",
placeholder: "gets-sets-flys",
helper_text: "Ověřovací kód byl odeslán na váš nový e-mail.",
errors: {
required: "Jedinečný kód je povinný",
invalid: "Neplatný ověřovací kód. Zkuste to znovu.",
},
},
},
actions: {
continue: "Pokračovat",
confirm: "Potvrdit",
cancel: "Zrušit",
},
states: {
sending: "Odesílání…",
},
},
},
},
workspace_settings: {
label: "Nastavení pracovního prostoru",
page_label: "{workspace} - Obecná nastavení",