Files
dafuweng/resource/translations/zh_CN/validator.php
2026-03-02 13:44:38 +08:00

35 lines
1.3 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
/**
* Created by PhpStorm.
* User: rocky
* Date: 2022-02-26
* Time: 00:44
*/
return [
'required' => '{{name}}不能为空',
'email' => '邮箱格式不符',
'idCard' => '身份证格式不符',
'url' => '不是有效的URL地址',
'number' => '必须是数字',
'integer' => '必须是整数',
'float' => '必须是浮点数',
'mobile' => '格式不符',
'leng' => '长度不符合要求 ',
'alpha' => '只能是字母',
'alphaNum' => '只能是字母数字',
'alnum' => '只能是字母数字',
'alphaDash' => '只能是字母、数字和下划线_及破折号-',
'chs' => '只能是汉字',
'chsAlpha' => '只能是汉字、字母',
'chsAlphaNum' => '只能是汉字、字母和数字',
'chsDash' => '只能是汉字、字母、数字和下划线_及破折号-',
'in' => '{{name}}值错误',
'equals' => '{{name}}必须与密码相同',
'image' => '必须是图片',
'length' => '{{name}} 长度必须在 {{minValue}} 与 {{maxValue}} 之间',
'creditCard' => '必须是有效的信用卡号',
'digit' => '{{name}}只能包含数字0-9',
'base64' => '{{name}}必须是base64格式',
'arrayVal' => '{{name}}必须是数组格式格式',
'is_channel' => '{{name}}必须是数组bool格式',
];