Files
lotteryLaravel/lang/en/validation_rules.php
kang 12ffdebb62
Some checks failed
lotterLaravel CI / test (push) Has been cancelled
lotterLaravel E2E / e2e-api (push) Has been cancelled
feat(lang): 添加并扩展多语言验证和管理员提示信息
- 在英语和尼泊尔语中新增管理员相关提示‘integration_site_store_deprecated’
- 丰富了验证属性的多语言条目,覆盖更多字段及嵌套属性
- 新增验证业务规则的语言提示,补充限制和条件说明
- 扩展自定义验证消息,加入数组、邮箱、角色、返点率等多种验证提示
- 增加多个验证规则的语言描述,支持更多常见的验证类型及场景
- 尼泊尔语验证文件调整,改用多个文件合并方式加载结构
- 尼泊尔语钱包错误消息中新增代码1011的翻译描述
2026-07-07 09:44:03 +08:00

133 lines
6.6 KiB
PHP

<?php
return [
'accepted' => 'You must accept :attribute.',
'array' => ':attribute must be a list.',
'boolean' => ':attribute must be true or false.',
'confirmed' => ':attribute confirmation does not match.',
'date' => ':attribute must be a valid date.',
'date_format' => ':attribute must match the format :format.',
'email' => ':attribute must be a valid email address.',
'exists' => 'The selected :attribute is invalid or unavailable.',
'filled' => ':attribute must have a value.',
'in' => 'The selected :attribute is invalid.',
'integer' => ':attribute must be an integer.',
'json' => ':attribute must be valid JSON.',
'max' => [
'array' => ':attribute may not have more than :max items.',
'numeric' => ':attribute may not be greater than :max.',
'string' => ':attribute may not exceed :max characters.',
],
'min' => [
'array' => ':attribute must have at least :min items.',
'numeric' => ':attribute must be at least :min.',
'string' => ':attribute must be at least :min characters.',
],
'not_in' => 'The selected :attribute is invalid.',
'not_regex' => ':attribute format is invalid.',
'numeric' => ':attribute must be a number.',
'present' => ':attribute must be present.',
'prohibited' => ':attribute is not allowed.',
'regex' => ':attribute format is invalid.',
'required' => ':attribute is required.',
'required_if' => ':attribute is required when :other is :value.',
'required_with' => ':attribute is required when :values is present.',
'required_with_all' => ':attribute is required when :values are present.',
'required_without' => ':attribute is required when :values is not present.',
'same' => ':attribute must match :other.',
'size' => [
'array' => ':attribute must contain :size items.',
'numeric' => ':attribute must be :size.',
'string' => ':attribute must be :size characters.',
],
'string' => ':attribute must be text.',
'unique' => ':attribute is already taken.',
'url' => ':attribute must be a valid URL.',
'uuid' => ':attribute must be a valid UUID.',
'between' => [
'array' => ':attribute must have between :min and :max items.',
'numeric' => ':attribute must be between :min and :max.',
'string' => ':attribute must be between :min and :max characters.',
],
'after_or_equal' => ':attribute must be on or after :date.',
'distinct' => ':attribute has a duplicate value.',
'accepted_if' => 'The :attribute must be accepted when :other is :value.',
'active_url' => ':attribute must be a valid URL.',
'after' => ':attribute must be after :date.',
'alpha' => ':attribute may only contain letters.',
'alpha_dash' => ':attribute may only contain letters, numbers, dashes and underscores.',
'alpha_num' => ':attribute may only contain letters and numbers.',
'ascii' => ':attribute may only contain single-byte alphanumeric characters and symbols.',
'before' => ':attribute must be before :date.',
'before_or_equal' => ':attribute must be on or before :date.',
'date_equals' => ':attribute must equal :date.',
'decimal' => ':attribute must have :decimal decimal places.',
'declined' => 'The :attribute must be declined.',
'different' => ':attribute and :other must be different.',
'digits' => ':attribute must be :digits digits.',
'digits_between' => ':attribute must be between :min and :max digits.',
'ends_with' => ':attribute must end with one of the following: :values.',
'enum' => 'The selected :attribute is invalid.',
'file' => ':attribute must be a file.',
'image' => ':attribute must be an image.',
'in_array' => ':attribute does not exist in :other.',
'ip' => ':attribute must be a valid IP address.',
'lowercase' => ':attribute must be lowercase.',
'uppercase' => ':attribute must be uppercase.',
'prohibited_if' => ':attribute is prohibited when :other is :value.',
'required_unless' => ':attribute is required unless :other is in :values.',
'required_without_all' => ':attribute is required when none of :values are present.',
'required_array_keys' => ':attribute must contain: :values.',
'starts_with' => ':attribute must start with one of the following: :values.',
'timezone' => ':attribute must be a valid timezone.',
'uploaded' => ':attribute failed to upload.',
'between' => [
'array' => ':attribute must have between :min and :max items.',
'file' => ':attribute must be between :min and :max kilobytes.',
'numeric' => ':attribute must be between :min and :max.',
'string' => ':attribute must be between :min and :max characters.',
],
'max' => [
'array' => ':attribute may not have more than :max items.',
'file' => ':attribute may not be greater than :max kilobytes.',
'numeric' => ':attribute may not be greater than :max.',
'string' => ':attribute may not exceed :max characters.',
],
'min' => [
'array' => ':attribute must have at least :min items.',
'file' => ':attribute must be at least :min kilobytes.',
'numeric' => ':attribute must be at least :min.',
'string' => ':attribute must be at least :min characters.',
],
'size' => [
'array' => ':attribute must contain :size items.',
'file' => ':attribute must be :size kilobytes.',
'numeric' => ':attribute must be :size.',
'string' => ':attribute must be :size characters.',
],
'gt' => [
'array' => ':attribute must have more than :value items.',
'file' => ':attribute must be greater than :value kilobytes.',
'numeric' => ':attribute must be greater than :value.',
'string' => ':attribute must be greater than :value characters.',
],
'gte' => [
'array' => ':attribute must have at least :value items.',
'file' => ':attribute must be at least :value kilobytes.',
'numeric' => ':attribute must be at least :value.',
'string' => ':attribute must be at least :value characters.',
],
'lt' => [
'array' => ':attribute must have less than :value items.',
'file' => ':attribute must be less than :value kilobytes.',
'numeric' => ':attribute must be less than :value.',
'string' => ':attribute must be less than :value characters.',
],
'lte' => [
'array' => ':attribute may not have more than :value items.',
'file' => ':attribute may not be greater than :value kilobytes.',
'numeric' => ':attribute may not be greater than :value.',
'string' => ':attribute may not exceed :value characters.',
],
];