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 必須是有效的 E-mail。',
  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 field 不能留空。',
  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' => 'e-mail',
  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. ];