@@ -37,21 +37,21 @@ class LocaleZhCN
3737 'date ' => '{attr} 不是日期格式! ' ,
3838 'dateFormat ' => '{attr} is not in a {value0} date format! ' ,
3939 'ip ' => '{attr} 不是IP地址! ' ,
40- 'ipv4 ' => '{attr} is not a IPv4 address! ' ,
41- 'ipv6 ' => '{attr} is not a IPv6 address! ' ,
42- 'required ' => 'parameter {attr} is required! ' ,
43- 'requiredIf ' => 'parameter {attr} is required! ' ,
40+ 'ipv4 ' => '{attr} 不是 IPv4 地址! ' ,
41+ 'ipv6 ' => '{attr} 不是IPv6地址! ' ,
42+ 'required ' => '字段 {attr} 是必须的! ' ,
43+ 'requiredIf ' => '字段 {attr} 是必须的! ' ,
4444 'length ' => [
45- '{attr} length validation is not through! ' ,
46- '{attr} must be an string/array and minimum length is {min} ' ,
47- '{attr} must be an string/array and length range {min} ~ {max} ' ,
45+ '{attr} 长度验证未通过! ' ,
46+ '{attr} 必须是一个字符串/数组,最小长度是 {min} ' ,
47+ '{attr} 值不合法,长度范围只允许是 {min} ~ {max} ' ,
4848 ],
4949 // 'range', 'between'
5050 'size ' => [
5151 '{attr} size validation is not through! ' ,
52- '{attr} must be an integer/string/array and minimum value/length is {min} ' ,
52+ '{attr} 值不合法,最小是 {min} ' ,
5353 // '{attr} must be an integer/string/array and value/length range {min} ~ {max}',
54- '{attr} must be in the range {min} ~ {max} ' ,
54+ '{attr} 值不合法,大小范围只允许是 {min} ~ {max} ' ,
5555 ],
5656
5757 // 'lengthEq', 'sizeEq'
@@ -68,21 +68,21 @@ class LocaleZhCN
6868 'gte ' => '{attr} value must be greater than or equals to {value0} ' ,
6969
7070 // field compare
71- 'eqField ' => '{attr} value must be less than {value0} ' ,
72- 'neqField ' => '{attr} value must be less than {value0} ' ,
73- 'ltField ' => '{attr} value must be less than {value0} ' ,
74- 'lteField ' => '{attr} value must be less than or equals to {value0} ' ,
75- 'gtField ' => '{attr} value must be greater than {value0} ' ,
76- 'gteField ' => '{attr} value must be greater than or equals to {value0} ' ,
71+ 'eqField ' => '{attr} 值必须等于 {value0} 的值 ' ,
72+ 'neqField ' => '{attr} 值不能等于 {value0} 的值 ' ,
73+ 'ltField ' => '{attr} 值必须小于 {value0} 的值 ' ,
74+ 'lteField ' => '{attr} 值必须小于或等于 {value0} 的值 ' ,
75+ 'gtField ' => '{attr} 值必须大于 {value0} 的值 ' ,
76+ 'gteField ' => '{attr} 值必须大于或等于 {value0} 的值 ' ,
7777
7878 // 'in', 'enum',
7979 'enum ' => '{attr} must in ({value0}) ' ,
8080 'notIn ' => '{attr} cannot in ({value0}) ' ,
8181
8282 'string ' => [
83- '{attr} must be a string ' ,
84- '{attr} must be a string and minimum length be {min} ' ,
85- '{attr} must be a string and length range must be {min} ~ {max} ' ,
83+ '{attr} 必须是字符串 ' ,
84+ '{attr} 必须是字符串并且最小长度为 {min} ' ,
85+ '{attr} 必须是字符串并且长度范围必须是 {min} ~ {max} ' ,
8686 ],
8787
8888 // 'regex', 'regexp',
@@ -94,22 +94,22 @@ class LocaleZhCN
9494 'compare ' => '{attr} must be equals to {value0} ' ,
9595 'same ' => '{attr} must be equals to {value0} ' ,
9696
97- 'isArray ' => '{attr} must be an array ' ,
98- 'isMap ' => '{attr} must be an array and is key-value format ' ,
99- 'isList ' => '{attr} must be an array of nature ' ,
100- 'intList ' => '{attr} must be an array and value is all integers ' ,
101- 'numList ' => '{attr} must be an array and value is all numbers ' ,
102- 'strList ' => '{attr} must be an array and value is all strings ' ,
103- 'arrList ' => '{attr} must be an array and value is all arrays ' ,
97+ 'isArray ' => '{attr} 必须是数组 ' ,
98+ 'isMap ' => '{attr} 必须是数组并且是键-值对格式 ' ,
99+ 'isList ' => '{attr} 必须是自然数组 ' ,
100+ 'intList ' => '{attr} 必须是一个数组并且值都是整数 ' ,
101+ 'numList ' => '{attr} 必须是一个数组并且值都是大于0的数字 ' ,
102+ 'strList ' => '{attr} 必须是一个数组并且值都是字符串 ' ,
103+ 'arrList ' => '{attr} 必须是一个数组,并且值也都是数组 ' ,
104104
105105 'each ' => '{attr} each value must be through the "{value0}" verify ' ,
106- 'hasKey ' => '{attr} must be contains the key {value0} ' ,
107- 'distinct ' => 'there should not be duplicate keys in the {attr} ' ,
106+ 'hasKey ' => '{attr} 必须包含键字段 {value0} ' ,
107+ 'distinct ' => '{attr} 中不应该有重复的值 ' ,
108108
109- 'json ' => '{attr} must be an json string ' ,
109+ 'json ' => '{attr} 必须是 json 字符串 ' ,
110110
111- 'file ' => '{attr} must be an uploaded file ' ,
112- 'image ' => '{attr} must be an uploaded image file ' ,
111+ 'file ' => '{attr} 必须是上传的文件 ' ,
112+ 'image ' => '{attr} 必须是上传的图片文件 ' ,
113113
114114 'callback ' => '{attr} don \'t pass the test and verify! ' ,
115115 '__default ' => '{attr} validation is not through! ' ,
0 commit comments