github.com/wangyougui/gf/v2@v2.6.5/util/gvalid/testdata/i18n/cn/validation.toml (about) 1 "gf.gvalid.rule.required" = "{field}字段不能为空" 2 "gf.gvalid.rule.required-if" = "{field}字段不能为空" 3 "gf.gvalid.rule.required-unless" = "{field}字段不能为空" 4 "gf.gvalid.rule.required-with" = "{field}字段不能为空" 5 "gf.gvalid.rule.required-with-all" = "{field}字段不能为空" 6 "gf.gvalid.rule.required-without" = "{field}字段不能为空" 7 "gf.gvalid.rule.required-without-all" = "{field}字段不能为空" 8 "gf.gvalid.rule.date" = "{field}字段值`{value}`日期格式不满足Y-m-d格式,例如: 2001-02-03" 9 "gf.gvalid.rule.datetime" = "{field}字段值`{value}`日期格式不满足Y-m-d H:i:s格式,例如: 2001-02-03 12:00:00" 10 "gf.gvalid.rule.date-format" = "{field}字段值`{value}`日期格式不满足{format}" 11 "gf.gvalid.rule.email" = "{field}字段值`{value}`邮箱地址格式不正确" 12 "gf.gvalid.rule.phone" = "{field}字段值`{value}`手机号码格式不正确" 13 "gf.gvalid.rule.phone-loose" = "{field}字段值`{value}`手机号码格式不正确" 14 "gf.gvalid.rule.telephone" = "{field}字段值`{value}`电话号码格式不正确" 15 "gf.gvalid.rule.passport" = "{field}字段值`{value}`账号格式不合法,必需以字母开头,只能包含字母、数字和下划线,长度在6~18之间" 16 "gf.gvalid.rule.password" = "{field}字段值`{value}`密码格式不合法,密码格式为任意6-18位的可见字符" 17 "gf.gvalid.rule.password2" = "{field}字段值`{value}`密码格式不合法,密码格式为任意6-18位的可见字符,必须包含大小写字母和数字" 18 "gf.gvalid.rule.password3" = "{field}字段值`{value}`密码格式不合法,密码格式为任意6-18位的可见字符,必须包含大小写字母、数字和特殊字符" 19 "gf.gvalid.rule.postcode" = "{field}字段值`{value}`邮政编码不正确" 20 "gf.gvalid.rule.resident-id" = "{field}字段值`{value}`身份证号码格式不正确" 21 "gf.gvalid.rule.bank-card" = "{field}字段值`{value}`银行卡号格式不正确" 22 "gf.gvalid.rule.qq" = "{field}字段值`{value}`QQ号码格式不正确" 23 "gf.gvalid.rule.ip" = "{field}字段值`{value}`IP地址格式不正确" 24 "gf.gvalid.rule.ipv4" = "{field}字段值`{value}`IPv4地址格式不正确" 25 "gf.gvalid.rule.ipv6" = "{field}字段值`{value}`IPv6地址格式不正确" 26 "gf.gvalid.rule.mac" = "{field}字段值`{value}`MAC地址格式不正确" 27 "gf.gvalid.rule.url" = "{field}字段值`{value}`URL地址格式不正确" 28 "gf.gvalid.rule.domain" = "{field}字段值`{value}`域名格式不正确" 29 "gf.gvalid.rule.length" = "{field}字段值`{value}`字段长度应当为{min}到{max}个字符" 30 "gf.gvalid.rule.min-length" = "{field}字段值`{value}`字段最小长度应当为{min}" 31 "gf.gvalid.rule.max-length" = "{field}字段值`{value}`字段最大长度应当为{max}" 32 "gf.gvalid.rule.size" = "{field}字段值`{value}`字段长度必须应当为{size}" 33 "gf.gvalid.rule.between" = "{field}字段值`{value}`字段大小应当为{min}到{max}" 34 "gf.gvalid.rule.min" = "{field}字段值`{value}`字段最小值应当为{min}" 35 "gf.gvalid.rule.max" = "{field}字段值`{value}`字段最大值应当为{max}" 36 "gf.gvalid.rule.json" = "{field}字段值`{value}`字段应当为JSON格式" 37 "gf.gvalid.rule.xml" = "{field}字段值`{value}`字段应当为XML格式" 38 "gf.gvalid.rule.array" = "{field}字段值`{value}`字段应当为数组" 39 "gf.gvalid.rule.integer" = "{field}字段值`{value}`字段应当为整数" 40 "gf.gvalid.rule.float" = "{field}字段值`{value}`字段应当为浮点数" 41 "gf.gvalid.rule.boolean" = "{field}字段值`{value}`字段应当为布尔值" 42 "gf.gvalid.rule.same" = "{field}字段值`{value}`字段值必须和{field}相同" 43 "gf.gvalid.rule.different" = "{field}字段值`{value}`字段值不能与{field}相同" 44 "gf.gvalid.rule.in" = "{field}字段值`{value}`字段值应当满足取值范围:{pattern}" 45 "gf.gvalid.rule.not-in" = "{field}字段值`{value}`字段值不应当满足取值范围:{pattern}" 46 "gf.gvalid.rule.regex" = "{field}字段值`{value}`字段值不满足规则:{pattern}" 47 "gf.gvalid.rule.__default__" = "{field}字段值`{value}`字段值不合法" 48 "CustomMessage" = "自定义错误" 49 "project id must between {min}, {max}" = "项目ID必须大于等于{min}并且要小于等于{max}"