feat: fix translate bug in UpdateUser() (#1451)

* fix: fix translate error

* fix translate bug in UpdateUser()

* Delete DiscordLoginButton.js
This commit is contained in:
Mr Forest 2023-01-04 22:54:50 +08:00 committed by GitHub
parent 0559298d6c
commit c8846f1a2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -273,7 +273,7 @@ func (c *ApiController) UpdateUser() {
isGlobalAdmin := c.IsGlobalAdmin()
if pass, err := checkPermissionForUpdateUser(id, user, c); !pass {
c.ResponseError(c.T(err))
c.ResponseError(err)
return
}

View File

@ -90,7 +90,7 @@
"You can't unlink yourself, you are not a member of any application": "您无法取消链接,您不是任何应用程序的成员"
},
"organization": {
"Only admin can modify the %s.": "您无法取消链接,您不是任何应用程序的成员",
"Only admin can modify the %s.": "仅允许管理员可以修改 %s",
"The %s is immutable.": "%s是不可变的",
"Unknown modify rule %s.": "未知的修改规则"
},