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

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

@@ -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),
},
}