From 428a8a10ffa96ae2f04c718d678439d36e6cb857 Mon Sep 17 00:00:00 2001 From: Philipp Dormann Date: Sun, 7 Feb 2021 13:11:08 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=8D=20i18n=20for=20ResetPassword?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ref #43 --- src/components/ResetPassword.svelte | 18 +++++++++--------- src/locales/en.json | 9 +++++++++ 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/src/components/ResetPassword.svelte b/src/components/ResetPassword.svelte index 3b1e4ca9..64ca4583 100644 --- a/src/components/ResetPassword.svelte +++ b/src/components/ResetPassword.svelte @@ -9,13 +9,13 @@ function set_new_password() { if(password.trim() !== ""){ Toastify({ - text: "Password Reset in Progress...", + text: $_('password-reset-in-progress'), duration: 3500, }).showToast(); AuthService.authControllerResetPassword(params.resetkey,{ password }) .then((resp) => { Toastify({ - text: "Password Reset successful!", + text: $_('password-reset-successful'), duration: 3500, }).showToast(); state="reset_success"; @@ -25,7 +25,7 @@ }); } else { Toastify({ - text: "Please provide a password...", + text: $_('please-provide-a-password'), duration: 3500, }).showToast(); } @@ -40,17 +40,17 @@ {$_('application_name')}

- Successful password reset! + {$_('successful-password-reset')}

- You can now use your new password to log in to your account! 🎉 + {$_('you-can-now-use-your-new-password-to-log-in-to-your-account')}

@@ -64,17 +64,17 @@ {$_('application_name')}

- Password reset failed! + {$_('password-reset-failed')}

- Please request a new reset mail... + {$_('please-request-a-new-reset-mail')}

diff --git a/src/locales/en.json b/src/locales/en.json index 68ac61e6..dd9ccd3e 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -89,6 +89,7 @@ "forgot_password?": "Forgot your password?", "general-stats": "General Stats", "general_promise_error": "😢 Error", + "go-to-login": "Go To Login", "goback": "Go Home", "group": "Group", "groups": "Groups", @@ -124,17 +125,23 @@ "oss_credit_description": "We use a lot of open source software on these projects, and would like to thank the following projects and contributors who help make open source great!", "password": "Password", "password-is-required": "Password is required", + "password-reset-failed": "Password reset failed!", + "password-reset-in-progress": "Password Reset in Progress...", + "password-reset-successful": "Password Reset successful!", "permissions": "Permissions", "phone": "Phone", + "please-provide-a-password": "Please provide a password...", "please-provide-the-required-csv-xlsx-file": "Please provide the required csv/ xlsx file", "please-provide-the-required-information-to-add-a-new-runner": "Please provide the required information to add a new runner.", "please-provide-the-required-information-to-add-a-new-track": "Please provide the required information to add a new track.", + "please-request-a-new-reset-mail": "Please request a new reset mail...", "privacy": "Privacy 🔒", "privacy-loading": "Privacy loading...", "profile-picture": "Profile Picture", "read-license": "Read License", "register": "Register", "repo_link": "Link", + "request-a-new-reset-mail": "Request a new reset mail", "reset-my-password": "Reset my password", "reset-password": "Reset your password", "runner-import": "Runner Import", @@ -146,6 +153,7 @@ "settings": "Settings", "signout": "Sign out", "stats-are-being-loaded": "stats are being loaded...", + "successful-password-reset": "Successful password reset!", "team": "Team", "team-name": "Team name", "teams": "Teams", @@ -167,5 +175,6 @@ "users": "Users", "valid-email-is-required": "valid email is required", "welcome_wavinghand": "Welcome 👋", + "you-can-now-use-your-new-password-to-log-in-to-your-account": "You can now use your new password to log in to your account! 🎉", "your_profile": "Your Profile" } \ No newline at end of file