@@ -41,7 +41,7 @@ const FormPartBasicWithPriority = () => {
41
41
< FormItemNumberInput
42
42
control = { control }
43
43
name = "priority"
44
- label = { t ( 'form.route .priority' ) }
44
+ label = { t ( 'form.routes .priority' ) }
45
45
defaultValue = { zGetDefault ( APISIX . Route ) . priority ! }
46
46
/>
47
47
</ FormPartBasic >
@@ -52,56 +52,56 @@ const FormSectionMatchRules = () => {
52
52
const { t } = useTranslation ( ) ;
53
53
const { control } = useFormContext < RoutePostType > ( ) ;
54
54
return (
55
- < FormSection legend = { t ( 'form.route .matchRules' ) } >
55
+ < FormSection legend = { t ( 'form.routes .matchRules' ) } >
56
56
< FormItemTagsInput
57
57
control = { control }
58
58
name = "methods"
59
- label = { t ( 'form.route .methods' ) }
59
+ label = { t ( 'form.routes .methods' ) }
60
60
data = { APISIX . HttpMethod . options . map ( ( v ) => v . value ) }
61
61
searchValue = ""
62
62
/>
63
- < InputWrapper label = { t ( 'form.route .enableWebsocket' ) } >
63
+ < InputWrapper label = { t ( 'form.routes .enableWebsocket' ) } >
64
64
< FormItemSwitch control = { control } name = "enable_websocket" />
65
65
</ InputWrapper >
66
66
< FormItemTextInput
67
67
control = { control }
68
68
name = "uri"
69
- label = { t ( 'form.route .uri' ) }
69
+ label = { t ( 'form.routes .uri' ) }
70
70
/>
71
71
< FormItemTagsInput
72
72
control = { control }
73
73
name = "uris"
74
- label = { t ( 'form.route .uris' ) }
74
+ label = { t ( 'form.routes .uris' ) }
75
75
/>
76
76
< FormItemTextInput
77
77
control = { control }
78
78
name = "host"
79
- label = { t ( 'form.route .host' ) }
79
+ label = { t ( 'form.routes .host' ) }
80
80
/>
81
81
< FormItemTagsInput
82
82
control = { control }
83
83
name = "hosts"
84
- label = { t ( 'form.route .hosts' ) }
84
+ label = { t ( 'form.routes .hosts' ) }
85
85
/>
86
86
< FormItemTextInput
87
87
control = { control }
88
88
name = "remote_addr"
89
- label = { t ( 'form.route .remoteAddr' ) }
89
+ label = { t ( 'form.routes .remoteAddr' ) }
90
90
/>
91
91
< FormItemTagsInput
92
92
control = { control }
93
93
name = "remote_addrs"
94
- label = { t ( 'form.route .remoteAddrs' ) }
94
+ label = { t ( 'form.routes .remoteAddrs' ) }
95
95
/>
96
96
< FormItemTagsInput
97
97
control = { control }
98
98
name = "vars"
99
- label = { t ( 'form.route .vars' ) }
99
+ label = { t ( 'form.routes .vars' ) }
100
100
/>
101
101
< FormItemTextarea
102
102
control = { control }
103
103
name = "filter_func"
104
- label = { t ( 'form.route .filterFunc' ) }
104
+ label = { t ( 'form.routes .filterFunc' ) }
105
105
/>
106
106
</ FormSection >
107
107
) ;
@@ -111,8 +111,8 @@ export const FormSectionUpstream = () => {
111
111
const { t } = useTranslation ( ) ;
112
112
const { control } = useFormContext < RoutePostType > ( ) ;
113
113
return (
114
- < FormSection legend = { t ( 'form.upstream .title' ) } >
115
- < FormSection legend = { t ( 'form.upstream .upstreamId' ) } >
114
+ < FormSection legend = { t ( 'form.upstreams .title' ) } >
115
+ < FormSection legend = { t ( 'form.upstreams .upstreamId' ) } >
116
116
< FormItemTextInput control = { control } name = "upstream_id" />
117
117
</ FormSection >
118
118
< Divider my = "xs" label = { t ( 'or' ) } />
@@ -143,11 +143,11 @@ export const FormSectionService = () => {
143
143
const { t } = useTranslation ( ) ;
144
144
const { control } = useFormContext < RoutePostType > ( ) ;
145
145
return (
146
- < FormSection legend = { t ( 'form.route .service' ) } >
146
+ < FormSection legend = { t ( 'form.routes .service' ) } >
147
147
< FormItemTextInput
148
148
control = { control }
149
149
name = "service_id"
150
- label = { t ( 'form.upstream .serviceId' ) }
150
+ label = { t ( 'form.upstreams .serviceId' ) }
151
151
/>
152
152
</ FormSection >
153
153
) ;
0 commit comments