Skip to content

Commit

Permalink
fix: change password success prompts localized message
Browse files Browse the repository at this point in the history
  • Loading branch information
rocwind committed Mar 24, 2022
1 parent 70ceab3 commit 21c987a
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 23 deletions.
25 changes: 13 additions & 12 deletions locales/en.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{
"Please sign in": "Please sign in",
"email address": "email address",
"username": "username",
"password": "password",
"Remember me": "Remember me",
"Log in": "Log in",
"hot update server": "hot update server",
"Change Password": "Change Password",
"Obtain": "Obtain",
"old password": "old password",
"new password": "new password",
"please login again": "please login again"
"Please sign in": "Please sign in",
"email address": "email address",
"username": "username",
"password": "password",
"Remember me": "Remember me",
"Log in": "Log in",
"hot update server": "hot update server",
"Change Password": "Change Password",
"Obtain": "Obtain",
"old password": "old password",
"new password": "new password",
"please login again": "please login again",
"change success": "change success"
}
21 changes: 11 additions & 10 deletions locales/zh.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{
"Please sign in": "请登录",
"email address": "邮箱地址",
"username": "用户名",
"password": "密码",
"Remember me": "记住我",
"Log in": "登录",
"hot update server": "热更新服务器",
"Change Password": "修改密码",
"Obtain": "获取",
"Please sign in": "请登录",
"email address": "邮箱地址",
"username": "用户名",
"password": "密码",
"Remember me": "记住我",
"Log in": "登录",
"hot update server": "热更新服务器",
"Change Password": "修改密码",
"Obtain": "获取",
"old password": "原密码",
"new password": "新密码",
"please login again": "请重新登录"
"please login again": "请重新登录",
"change success": "修改成功"
}
2 changes: 1 addition & 1 deletion views/auth/password.pug
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ block js
dataType: 'json',
success: function (data) {
if (data.status == "OK") {
alert(`${__('修改成功')}`);
alert("#{__('change success')}");
location.href = '/auth/login';
} else if (data.status == 401) {
alert('token invalid');
Expand Down

0 comments on commit 21c987a

Please sign in to comment.