mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2026-05-12 21:05:20 +08:00
部分中文转换为多语言代号
This commit is contained in:
@@ -3,6 +3,7 @@ package log
|
||||
import (
|
||||
"github.com/TeaOSLab/EdgeAdmin/internal/configloaders"
|
||||
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/actionutils"
|
||||
"github.com/TeaOSLab/EdgeCommon/pkg/langs/codes"
|
||||
"github.com/TeaOSLab/EdgeCommon/pkg/rpc/pb"
|
||||
"github.com/iwind/TeaGo/maps"
|
||||
timeutil "github.com/iwind/TeaGo/utils/time"
|
||||
@@ -41,15 +42,15 @@ func (this *IndexAction) RunGet(params struct {
|
||||
this.Data["levelOptions"] = []maps.Map{
|
||||
{
|
||||
"code": "info",
|
||||
"name": "信息",
|
||||
"name": this.Lang(codes.AdminLevelInfo),
|
||||
},
|
||||
{
|
||||
"code": "warn",
|
||||
"name": "警告",
|
||||
"name": this.Lang(codes.AdminLevelWarn),
|
||||
},
|
||||
{
|
||||
"code": "error",
|
||||
"name": "错误",
|
||||
"name": this.Lang(codes.AdminLevelError),
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user