[lang] fix tiny language

This commit is contained in:
admin 2024-11-28 20:52:35 +08:00
parent 0000931a88
commit 5c78051a85
2 changed files with 2 additions and 3 deletions

View File

@ -272,7 +272,7 @@ team_name = Team name
member_amount = Number of members
join_time = Join Time
project_setting = Project setting
handover_project = Hanover
handover_project = Handover
make_public = Into Public
make_private = Into Privete
history_record_amount = Number of history records

View File

@ -1017,8 +1017,7 @@ func (c *ManagerController) TeamChangeMemberRole() {
if memberId <= 0 || roleId <= 0 || teamId <= 0 || roleId > int(conf.BookObserver) {
c.JsonResult(5001, i18n.Tr(c.Lang, "message.param_error"))
}
teamMember, err := models.NewTeamMember().ChangeRoleId(teamId, memberId, conf.BookRole(roleId))
teamMember, err := models.NewTeamMember().SetLang(c.Lang).ChangeRoleId(teamId, memberId, conf.BookRole(roleId))
if err != nil {
c.JsonResult(5002, err.Error())