validation.php 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. <?php
  2. declare(strict_types=1);
  3. return [
  4. 'accepted' => '您必须接受 :attribute。',
  5. 'accepted_if' => '当 :other 为 :value 时,必须接受 :attribute。',
  6. 'active_url' => ':Attribute 不是一个有效的网址。',
  7. 'after' => ':Attribute 必须要晚于 :date。',
  8. 'after_or_equal' => ':Attribute 必须要等于 :date 或更晚。',
  9. 'alpha' => ':Attribute 只能由字母组成。',
  10. 'alpha_dash' => ':Attribute 只能由字母、数字、短划线(-)和下划线(_)组成。',
  11. 'alpha_num' => ':Attribute 只能由字母和数字组成。',
  12. 'array' => ':Attribute 必须是一个数组。',
  13. 'ascii' => ':Attribute 必须仅包含单字节字母数字字符和符号。',
  14. 'before' => ':Attribute 必须要早于 :date。',
  15. 'before_or_equal' => ':Attribute 必须要等于 :date 或更早。',
  16. 'between' => [
  17. 'array' => ':Attribute 必须只有 :min - :max 个单元。',
  18. 'file' => ':Attribute 必须介于 :min - :max KB 之间。',
  19. 'numeric' => ':Attribute 必须介于 :min - :max 之间。',
  20. 'string' => ':Attribute 必须介于 :min - :max 个字符之间。',
  21. ],
  22. 'boolean' => ':Attribute 必须为布尔值。',
  23. 'can' => ':Attribute 字段包含未经授权的值。',
  24. 'confirmed' => ':Attribute 两次输入不一致。',
  25. 'current_password' => '密码错误。',
  26. 'date' => ':Attribute 不是一个有效的日期。',
  27. 'date_equals' => ':Attribute 必须要等于 :date。',
  28. 'date_format' => ':Attribute 的格式必须为 :format。',
  29. 'decimal' => ':Attribute 必须有 :decimal 位小数。',
  30. 'declined' => ':Attribute 必须是拒绝的。',
  31. 'declined_if' => '当 :other 为 :value 时字段 :attribute 必须是拒绝的。',
  32. 'different' => ':Attribute 和 :other 必须不同。',
  33. 'digits' => ':Attribute 必须是 :digits 位数字。',
  34. 'digits_between' => ':Attribute 必须是介于 :min 和 :max 位的数字。',
  35. 'dimensions' => ':Attribute 图片尺寸不正确。',
  36. 'distinct' => ':Attribute 已经存在。',
  37. 'doesnt_end_with' => ':Attribute 不能以以下之一结尾: :values。',
  38. 'doesnt_start_with' => ':Attribute 不能以下列之一开头: :values。',
  39. 'email' => ':Attribute 不是一个合法的邮箱。',
  40. 'ends_with' => ':Attribute 必须以 :values 为结尾。',
  41. 'enum' => ':Attribute 值不正确。',
  42. 'exists' => ':Attribute 不存在。',
  43. 'extensions' => ':attribute 字段必须具有以下扩展名之一::values。',
  44. 'file' => ':Attribute 必须是文件。',
  45. 'filled' => ':Attribute 不能为空。',
  46. 'gt' => [
  47. 'array' => ':Attribute 必须多于 :value 个元素。',
  48. 'file' => ':Attribute 必须大于 :value KB。',
  49. 'numeric' => ':Attribute 必须大于 :value。',
  50. 'string' => ':Attribute 必须多于 :value 个字符。',
  51. ],
  52. 'gte' => [
  53. 'array' => ':Attribute 必须多于或等于 :value 个元素。',
  54. 'file' => ':Attribute 必须大于或等于 :value KB。',
  55. 'numeric' => ':Attribute 必须大于或等于 :value。',
  56. 'string' => ':Attribute 必须多于或等于 :value 个字符。',
  57. ],
  58. 'hex_color' => ':attribute 字段必须是有效的十六进制颜色。',
  59. 'image' => ':Attribute 必须是图片。',
  60. 'in' => '已选的属性 :attribute 无效。',
  61. 'in_array' => ':Attribute 必须在 :other 中。',
  62. 'integer' => ':Attribute 必须是整数。',
  63. 'ip' => ':Attribute 必须是有效的 IP 地址。',
  64. 'ipv4' => ':Attribute 必须是有效的 IPv4 地址。',
  65. 'ipv6' => ':Attribute 必须是有效的 IPv6 地址。',
  66. 'json' => ':Attribute 必须是正确的 JSON 格式。',
  67. 'lowercase' => ':Attribute 必须小写。',
  68. 'lt' => [
  69. 'array' => ':Attribute 必须少于 :value 个元素。',
  70. 'file' => ':Attribute 必须小于 :value KB。',
  71. 'numeric' => ':Attribute 必须小于 :value。',
  72. 'string' => ':Attribute 必须少于 :value 个字符。',
  73. ],
  74. 'lte' => [
  75. 'array' => ':Attribute 必须少于或等于 :value 个元素。',
  76. 'file' => ':Attribute 必须小于或等于 :value KB。',
  77. 'numeric' => ':Attribute 必须小于或等于 :value。',
  78. 'string' => ':Attribute 必须少于或等于 :value 个字符。',
  79. ],
  80. 'mac_address' => ':Attribute 必须是一个有效的 MAC 地址。',
  81. 'max' => [
  82. 'array' => ':Attribute 最多只有 :max 个单元。',
  83. 'file' => ':Attribute 不能大于 :max KB。',
  84. 'numeric' => ':Attribute 不能大于 :max。',
  85. 'string' => ':Attribute 不能大于 :max 个字符。',
  86. ],
  87. 'max_digits' => ':Attribute 不能超过 :max 位数。',
  88. 'mimes' => ':Attribute 必须是一个 :values 类型的文件。',
  89. 'mimetypes' => ':Attribute 必须是一个 :values 类型的文件。',
  90. 'min' => [
  91. 'array' => ':Attribute 至少有 :min 个单元。',
  92. 'file' => ':Attribute 大小不能小于 :min KB。',
  93. 'numeric' => ':Attribute 必须大于等于 :min。',
  94. 'string' => ':Attribute 至少为 :min 个字符。',
  95. ],
  96. 'min_digits' => ':Attribute 必须至少有 :min 位数。',
  97. 'missing' => '必须缺少 :attribute 字段。',
  98. 'missing_if' => '当 :other 为 :value 时,必须缺少 :attribute 字段。',
  99. 'missing_unless' => '必须缺少 :attribute 字段,除非 :other 是 :value。',
  100. 'missing_with' => '存在 :values 时,必须缺少 :attribute 字段。',
  101. 'missing_with_all' => '存在 :values 时,必须缺少 :attribute 字段。',
  102. 'multiple_of' => ':Attribute 必须是 :value 中的多个值。',
  103. 'not_in' => '已选的属性 :attribute 非法。',
  104. 'not_regex' => ':Attribute 的格式错误。',
  105. 'numeric' => ':Attribute 必须是一个数字。',
  106. 'password' => [
  107. 'letters' => ':Attribute 必须至少包含一个字母。',
  108. 'mixed' => ':Attribute 必须至少包含一个大写字母和一个小写字母。',
  109. 'numbers' => ':Attribute 必须至少包含一个数字。',
  110. 'symbols' => ':Attribute 必须至少包含一个符号。',
  111. 'uncompromised' => '给定的 :attribute 出现在已经泄漏的密码中。请选择不同的 :attribute。',
  112. ],
  113. 'present' => ':Attribute 必须存在。',
  114. 'present_if' => '当 :other 等于 :value 时,必须存在 :attribute 字段。',
  115. 'present_unless' => '除非 :other 等于 :value,否则 :attribute 字段必须存在。',
  116. 'present_with' => '当 :values 存在时,:attribute 字段必须存在。',
  117. 'present_with_all' => '当存在 :values 时,必须存在 :attribute 字段。',
  118. 'prohibited' => ':Attribute 字段被禁止。',
  119. 'prohibited_if' => '当 :other 为 :value 时,禁止 :attribute 字段。',
  120. 'prohibited_unless' => ':Attribute 字段被禁止,除非 :other 位于 :values 中。',
  121. 'prohibits' => ':Attribute 字段禁止出现 :other。',
  122. 'regex' => ':Attribute 格式不正确。',
  123. 'required' => ':Attribute 不能为空。',
  124. 'required_array_keys' => ':Attribute 至少包含指定的键::values.',
  125. 'required_if' => '当 :other 为 :value 时 :attribute 不能为空。',
  126. 'required_if_accepted' => '当 :other 存在时,:attribute 不能为空。',
  127. 'required_unless' => '当 :other 不为 :values 时 :attribute 不能为空。',
  128. 'required_with' => '当 :values 存在时 :attribute 不能为空。',
  129. 'required_with_all' => '当 :values 存在时 :attribute 不能为空。',
  130. 'required_without' => '当 :values 不存在时 :attribute 不能为空。',
  131. 'required_without_all' => '当 :values 都不存在时 :attribute 不能为空。',
  132. 'same' => ':Attribute 和 :other 必须相同。',
  133. 'size' => [
  134. 'array' => ':Attribute 必须为 :size 个单元。',
  135. 'file' => ':Attribute 大小必须为 :size KB。',
  136. 'numeric' => ':Attribute 大小必须为 :size。',
  137. 'string' => ':Attribute 必须是 :size 个字符。',
  138. ],
  139. 'starts_with' => ':Attribute 必须以 :values 为开头。',
  140. 'string' => ':Attribute 必须是一个字符串。',
  141. 'timezone' => ':Attribute 必须是一个合法的时区值。',
  142. 'ulid' => ':Attribute 必须是有效的 ULID。',
  143. 'unique' => ':Attribute 已经存在。',
  144. 'uploaded' => ':Attribute 上传失败。',
  145. 'uppercase' => ':Attribute 必须大写',
  146. 'url' => ':Attribute 格式不正确。',
  147. 'uuid' => ':Attribute 必须是有效的 UUID。',
  148. 'attributes' => [
  149. 'address' => '地址',
  150. 'affiliate_url' => '附属网址',
  151. 'age' => '年龄',
  152. 'amount' => '数额',
  153. 'area' => '区域',
  154. 'available' => '可用的',
  155. 'birthday' => '生日',
  156. 'body' => '身体',
  157. 'city' => '城市',
  158. 'content' => '内容',
  159. 'country' => '国家',
  160. 'created_at' => '创建于',
  161. 'creator' => '创建者',
  162. 'currency' => '货币',
  163. 'current_password' => '当前密码',
  164. 'customer' => '顾客',
  165. 'date' => '日期',
  166. 'date_of_birth' => '出生日期',
  167. 'day' => '天',
  168. 'deleted_at' => '删除于',
  169. 'description' => '描述',
  170. 'district' => '地区',
  171. 'duration' => '期间',
  172. 'email' => '邮箱',
  173. 'excerpt' => '摘要',
  174. 'filter' => '过滤',
  175. 'first_name' => '名',
  176. 'gender' => '性别',
  177. 'group' => '组',
  178. 'hour' => '时',
  179. 'image' => '图像',
  180. 'is_subscribed' => '已订阅',
  181. 'items' => '项目',
  182. 'last_name' => '姓',
  183. 'lesson' => '课程',
  184. 'line_address_1' => '线路地址 1',
  185. 'line_address_2' => '线路地址 2',
  186. 'message' => '信息',
  187. 'middle_name' => '中间名字',
  188. 'minute' => '分',
  189. 'mobile' => '手机',
  190. 'month' => '月',
  191. 'name' => '名称',
  192. 'national_code' => '国家代码',
  193. 'number' => '数字',
  194. 'password' => '密码',
  195. 'password_confirmation' => '确认密码',
  196. 'phone' => '电话',
  197. 'photo' => '照片',
  198. 'postal_code' => '邮政编码',
  199. 'preview' => '预览',
  200. 'price' => '价格',
  201. 'product_id' => '产品编号',
  202. 'product_uid' => '产品UID',
  203. 'product_uuid' => '产品UUID',
  204. 'promo_code' => '促销代码',
  205. 'province' => '省',
  206. 'quantity' => '数量',
  207. 'recaptcha_response_field' => '重复验证码响应字段',
  208. 'remember' => '记住',
  209. 'restored_at' => '恢复于',
  210. 'result_text_under_image' => '图像下的结果文本',
  211. 'role' => '角色',
  212. 'second' => '秒',
  213. 'sex' => '性别',
  214. 'shipment' => '运输',
  215. 'short_text' => '短文本',
  216. 'size' => '大小',
  217. 'state' => '状态',
  218. 'street' => '街道',
  219. 'student' => '学生',
  220. 'subject' => '主题',
  221. 'teacher' => '教师',
  222. 'terms' => '条款',
  223. 'test_description' => '测试说明',
  224. 'test_locale' => '测试语言环境',
  225. 'test_name' => '测试名称',
  226. 'text' => '文本',
  227. 'time' => '时间',
  228. 'title' => '标题',
  229. 'updated_at' => '更新于',
  230. 'user' => '用户',
  231. 'username' => '用户名',
  232. 'year' => '年',
  233. ],
  234. ];