Skip to content

Commit

Permalink
Added: static text entry in en.json(hotwax#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
ymaheshwari1 committed Oct 27, 2023
1 parent 3accce2 commit a1a1eb1
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
14 changes: 13 additions & 1 deletion src/locales/en.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,29 @@
{
"Already active session": "Already active session",
"Confirm Password": "Confirm Password",
"Email": "Email",
"Failed to reset password, please try again and follow the instructions for creating a new password.": "Failed to reset password, please try again and follow the instructions for creating a new password.",
"Failed to send password reset link, please try again or contact administrator.": "Failed to send password reset link, please try again or contact administrator.",
"Forgot Password?": "Forgot Password?",
"Launch Pad": "Launch Pad",
"Login": "Login",
"Logout": "Logout",
"New Password": "New Password",
"Next": "Next",
"OMS": "OMS",
"Password": "Password",
"Passwords do not match. Please try again": "Passwords do not match. Please try again",
"Please fill in the OMS": "Please fill in the OMS",
"Please fill in the user details": "Please fill in the user details",
"Processing": "Processing",
"Reset Password": "Reset Password",
"Resume": "Resume",
"Send Reset Link": "Send Reset Link",
"Something went wrong while login. Please contact administrator.": "Something went wrong while login. Please contact administrator.",
"Sorry, your username or password is incorrect. Please try again.": "Sorry, your username or password is incorrect. Please try again.",
"There is an already active session on for. Do you want to resume it, or would you prefer to log in again?": "There is an already active session on {oms} for {partyName}. Do you want to resume it, or would you prefer to log in again?",
"Username": "Username"
"Username": "Username",
"Username or Email cannot be empty, please fill both the fields.": "Username or Email cannot be empty, please fill both the fields.",
"Your password should be at least 5 characters long, it should contain at least one number, one alphabet and one from following special characters: !@#$%^&*.": "Your password should be at least 5 characters long, it should contain at least one number, one alphabet and one from following special characters: !@#$%^&*.",
"Your request for reset password has been processed. Please check your email for further instructions.": "Your request for reset password has been processed. Please check your email {email}, for further instructions."
}
3 changes: 2 additions & 1 deletion src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ const routes: Array<RouteRecordRaw> = [
{
path: '/forgotPassword',
name: 'ForgotPassword',
component: ForgotPassword
component: ForgotPassword,
beforeEnter: forgotPassword
}
];

Expand Down
1 change: 0 additions & 1 deletion src/store/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ export const useAuthStore = defineStore('authStore', {
try {
const resp = await UserService.login(username, password);
if (hasError(resp)) {
showToast(translate('Sorry, your username or password is incorrect. Please try again.'));
console.error("error", resp.data._ERROR_MESSAGE_);
return Promise.reject(new Error(resp.data._ERROR_MESSAGE_));
}
Expand Down

0 comments on commit a1a1eb1

Please sign in to comment.