部分中文转换为多语言代号

This commit is contained in:
刘祥超
2023-06-28 19:07:42 +08:00
parent a5e53df998
commit 65555e1fe3
26 changed files with 103 additions and 85 deletions

View File

@@ -19,7 +19,7 @@ func (this *CreatePopupAction) Init() {
}
func (this *CreatePopupAction) RunGet(params struct{}) {
this.Data["methods"] = grantutils.AllGrantMethods()
this.Data["methods"] = grantutils.AllGrantMethods(this.LangCode())
this.Show()
}
@@ -88,7 +88,7 @@ func (this *CreatePopupAction) RunPost(params struct {
"id": createResp.NodeGrantId,
"name": params.Name,
"method": params.Method,
"methodName": grantutils.FindGrantMethodName(params.Method),
"methodName": grantutils.FindGrantMethodName(params.Method, this.LangCode()),
"username": params.Username,
}