mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-14 04:10:26 +08:00
部分中文转换为多语言代号
This commit is contained in:
@@ -3,6 +3,7 @@ package waf
|
||||
import (
|
||||
"encoding/json"
|
||||
"github.com/TeaOSLab/EdgeAdmin/internal/web/actions/actionutils"
|
||||
"github.com/TeaOSLab/EdgeCommon/pkg/langs/codes"
|
||||
"github.com/TeaOSLab/EdgeCommon/pkg/rpc/dao"
|
||||
"github.com/TeaOSLab/EdgeCommon/pkg/rpc/pb"
|
||||
"github.com/TeaOSLab/EdgeCommon/pkg/serverconfigs/firewallconfigs"
|
||||
@@ -41,14 +42,14 @@ func (this *CreateSetPopupAction) RunGet(params struct {
|
||||
// 一些配置
|
||||
this.Data["connectors"] = []maps.Map{
|
||||
{
|
||||
"name": "和(AND)",
|
||||
"name": this.Lang(codes.AdminWAFConnectorAnd),
|
||||
"value": firewallconfigs.HTTPFirewallRuleConnectorAnd,
|
||||
"description": "所有规则都满足才视为匹配",
|
||||
"description": this.Lang(codes.AdminWAFConnectorAndDescription),
|
||||
},
|
||||
{
|
||||
"name": "或(OR)",
|
||||
"name": this.Lang(codes.AdminWAFConnectorOr),
|
||||
"value": firewallconfigs.HTTPFirewallRuleConnectorOr,
|
||||
"description": "任一规则满足了就视为匹配",
|
||||
"description": this.Lang(codes.AdminWAFConnectorOrDescription),
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user