From 925060689a54810691764cff95b64fdca77b320f Mon Sep 17 00:00:00 2001 From: Mysterious_Dev <40738104+Mysterious-Dev@users.noreply.github.com> Date: Sat, 27 Jan 2024 18:28:52 +0100 Subject: [PATCH] Add translation keys for verify email page (#1503) * Begin Work * Begin Work * WIP * Finish Work * Fix lint error * Re-organize keys on E-mail verification page (#12) - Group messages by the step - Use simpler keys for message properties as they're not public - Change message keys to conform to conventions --------- Co-authored-by: Sasha Sorokin <10401817+brawaru@users.noreply.github.com> Co-authored-by: Prospector <6166773+Prospector@users.noreply.github.com> --- locales/en-US/index.json | 33 ++++++++++++++ pages/auth/verify-email.vue | 89 +++++++++++++++++++++++++++++++------ 2 files changed, 108 insertions(+), 14 deletions(-) diff --git a/locales/en-US/index.json b/locales/en-US/index.json index b6e5b4bb9..7575c3065 100644 --- a/locales/en-US/index.json +++ b/locales/en-US/index.json @@ -1,4 +1,37 @@ { + "auth.verify-email.action.account-settings": { + "message": "Account settings" + }, + "auth.verify-email.action.sign-in": { + "message": "Sign in" + }, + "auth.verify-email.already-verified.description": { + "message": "Your email is already verified!" + }, + "auth.verify-email.already-verified.title": { + "message": "Email already verified" + }, + "auth.verify-email.failed-verification.action": { + "message": "Resend verification email" + }, + "auth.verify-email.failed-verification.description": { + "message": "We were unable to verify your email. Try re-sending the verification email through your dashboard by signing in." + }, + "auth.verify-email.failed-verification.description.logged-in": { + "message": "We were unable to verify your email. Try re-sending the verification email through the button below." + }, + "auth.verify-email.failed-verification.title": { + "message": "Email verification failed" + }, + "auth.verify-email.post-verification.description": { + "message": "Your email address has been successfully verified!" + }, + "auth.verify-email.post-verification.title": { + "message": "Email verification" + }, + "auth.verify-email.title": { + "message": "Verify Email" + }, "auth.reset-password.method-choice.action": { "message": "Send recovery email" }, diff --git a/pages/auth/verify-email.vue b/pages/auth/verify-email.vue index 7f0f1565c..78ea1866a 100644 --- a/pages/auth/verify-email.vue +++ b/pages/auth/verify-email.vue @@ -1,50 +1,51 @@