初始化本地仓库
This commit is contained in:
@@ -0,0 +1,148 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
// 操作反馈(成功/失败/确认)
|
||||
'operation' => [
|
||||
'success' => 'Success',
|
||||
'fail' => 'Failed',
|
||||
'save' => [
|
||||
'success' => 'Saved successfully',
|
||||
'fail' => 'Save failed',
|
||||
'confirm' => 'Confirm save?',
|
||||
],
|
||||
'delete' => [
|
||||
'success' => 'Deleted successfully',
|
||||
'fail' => 'Delete failed',
|
||||
'confirm' => 'Confirm delete?',
|
||||
],
|
||||
'update' => [
|
||||
'success' => 'Updated successfully',
|
||||
'fail' => 'Update failed',
|
||||
],
|
||||
'submit' => [
|
||||
'success' => 'Submitted successfully',
|
||||
'fail' => 'Submit failed',
|
||||
'confirm' => 'Confirm submit?',
|
||||
],
|
||||
'upload' => [
|
||||
'success' => 'Uploaded successfully',
|
||||
'fail' => 'Upload failed',
|
||||
'too_large' => 'File too large',
|
||||
'invalid_type' => 'Invalid file type',
|
||||
],
|
||||
'download' => [
|
||||
'success' => 'Downloaded successfully',
|
||||
'fail' => 'Download failed',
|
||||
],
|
||||
],
|
||||
|
||||
// 通用交互动作(按钮/导航/数据操作)
|
||||
'action' => [
|
||||
'confirm' => 'Confirm',
|
||||
'ensure' => 'Ensure',
|
||||
'yes' => 'Yes',
|
||||
'ok' => 'OK',
|
||||
'no' => 'No',
|
||||
'cancel' => 'Cancel',
|
||||
'abort' => 'Abort',
|
||||
'back' => 'Back',
|
||||
'return' => 'Return',
|
||||
'next' => 'Next',
|
||||
'continue' => 'Continue',
|
||||
'previous' => 'Previous',
|
||||
'home' => 'Home',
|
||||
'save' => 'Save',
|
||||
'store' => 'Store',
|
||||
'edit' => 'Edit',
|
||||
'modify' => 'Modify',
|
||||
'update' => 'Update',
|
||||
'refresh' => 'Refresh',
|
||||
'reset' => 'Reset',
|
||||
'clear' => 'Clear',
|
||||
'add' => 'Add',
|
||||
'create' => 'Create',
|
||||
'delete' => 'Delete',
|
||||
'remove' => 'Remove',
|
||||
'view' => 'View',
|
||||
'detail' => 'Detail',
|
||||
'search' => 'Search',
|
||||
'filter' => 'Filter',
|
||||
'import' => 'Import',
|
||||
'export' => 'Export',
|
||||
'print' => 'Print',
|
||||
'help' => 'Help',
|
||||
'settings' => 'Settings',
|
||||
'close' => 'Close',
|
||||
'exit' => 'Exit',
|
||||
],
|
||||
|
||||
// 状态提示(加载/错误/成功等)
|
||||
'status' => [
|
||||
'loading' => 'Loading...',
|
||||
'processing' => 'Processing...',
|
||||
'please_wait' => 'Please wait...',
|
||||
'success' => 'Success',
|
||||
'completed' => 'Completed',
|
||||
'failure' => 'Failure',
|
||||
'fail' => 'Failed',
|
||||
'error' => 'Error',
|
||||
'warning' => 'Warning',
|
||||
'info' => 'Information',
|
||||
'no_data' => 'No data available',
|
||||
'permission_denied' => 'Permission denied',
|
||||
'login_expired' => 'Login expired',
|
||||
'network_error' => 'Network connection error', // 原网络错误(泛化)
|
||||
'server_error' => 'Internal server error', // 原服务器错误(泛化)
|
||||
'request_timeout' => 'Request timed out', // 原请求超时(泛化)
|
||||
],
|
||||
|
||||
// 网络异常(HTTP 状态码 + 具体网络错误)
|
||||
'http' => [
|
||||
// 状态码(语义化键名 + 数字键名双映射)
|
||||
'bad_request_400' => 'Bad Request',
|
||||
'400' => 'Bad Request',
|
||||
'unauthorized_401' => 'Unauthorized',
|
||||
'401' => 'Unauthorized',
|
||||
'forbidden_403' => 'Forbidden',
|
||||
'403' => 'Forbidden',
|
||||
'not_found_404' => 'Not Found',
|
||||
'404' => 'Not Found',
|
||||
'method_not_allowed_405' => 'Method Not Allowed',
|
||||
'405' => 'Method Not Allowed',
|
||||
'request_timeout_408' => 'Request Timeout',
|
||||
'408' => 'Request Timeout',
|
||||
'too_many_requests_429' => 'Too Many Requests',
|
||||
'429' => 'Too Many Requests',
|
||||
'internal_server_error_500' => 'Internal Server Error',
|
||||
'500' => 'Internal Server Error',
|
||||
'bad_gateway_502' => 'Bad Gateway',
|
||||
'502' => 'Bad Gateway',
|
||||
'service_unavailable_503' => 'Service Unavailable',
|
||||
'503' => 'Service Unavailable',
|
||||
'gateway_timeout_504' => 'Gateway Timeout',
|
||||
'504' => 'Gateway Timeout',
|
||||
|
||||
// 网络异常描述(非状态码)
|
||||
'connection_refused' => 'Connection refused',
|
||||
'dns_lookup_failed' => 'DNS lookup failed',
|
||||
'ssl_handshake_failed' => 'SSL handshake failed',
|
||||
'resource_unavailable' => 'Resource temporarily unavailable',
|
||||
],
|
||||
|
||||
// 基础界面元素
|
||||
'ui' => [
|
||||
'dashboard' => 'Dashboard',
|
||||
'profile' => 'Profile',
|
||||
'account' => 'Account',
|
||||
'notification' => 'Notification',
|
||||
'message' => 'Message',
|
||||
'log' => 'Log',
|
||||
'history' => 'History',
|
||||
'about' => 'About',
|
||||
'contact' => 'Contact',
|
||||
'language' => 'Language',
|
||||
'theme' => 'Theme',
|
||||
'version' => 'Version',
|
||||
'copyright' => 'Copyright',
|
||||
],
|
||||
];
|
||||
@@ -0,0 +1,97 @@
|
||||
<?php
|
||||
/**
|
||||
*+------------------
|
||||
* madong
|
||||
*+------------------
|
||||
* Copyright (c) https://gitee.com/motion-code All rights reserved.
|
||||
*+------------------
|
||||
* Author: Mr. April (405784684@qq.com)
|
||||
*+------------------
|
||||
* Official Website: https://madong.tech
|
||||
*/
|
||||
|
||||
/**
|
||||
* 菜单翻译
|
||||
*/
|
||||
return [
|
||||
//首页
|
||||
'首页' => 'Home',
|
||||
'工作台' => 'Workspace',
|
||||
'分析页' => 'Dashboard',
|
||||
|
||||
//公共
|
||||
'编辑' => 'Edit',
|
||||
'新增' => 'Add',
|
||||
'删除' => 'Delete',
|
||||
'详情' => 'Detail',
|
||||
'导出' => 'Export',
|
||||
|
||||
//系统设置
|
||||
'用户' => 'User',
|
||||
'菜单管理' => 'Menu',
|
||||
'职位管理' => 'Position',
|
||||
'字典项列表' => 'DictList',
|
||||
'字典项添加' => 'DictAdd',
|
||||
'字典项删除' => 'DictDelete',
|
||||
'字典项编辑' => 'DictEdit',
|
||||
'数据中心' => 'DataCenter',
|
||||
'角色管理' => 'Role',
|
||||
'部门管理' => 'Department',
|
||||
'登录日志' => 'LoginLog',
|
||||
'冻结用户' => 'FreezeUser',
|
||||
'取消冻结' => 'Unfreeze',
|
||||
'通知公告' => 'Notice',
|
||||
'数据回收' => 'RecycleBin',
|
||||
'数据字典' => 'DataDict',
|
||||
'授权' => 'Authorize',
|
||||
'授权角色' => 'AssignRole',
|
||||
'系统监控' => 'Monitor',
|
||||
'系统参数' => 'SystemConfig',
|
||||
'系统设置' => 'Setting',
|
||||
'用户管理' => 'User',
|
||||
'移除用户' => 'RemoveUser',
|
||||
'附件管理' => 'Attachment',
|
||||
|
||||
//系统监控
|
||||
'性能监控' => 'Performance',
|
||||
'Redis监控' => 'RedisMonitor',
|
||||
'操作日志' => 'OperationLog',
|
||||
|
||||
//系统工具
|
||||
|
||||
//业务流程
|
||||
'业务流程' => 'Workflow',
|
||||
'流程查询' => 'Query',
|
||||
'流程设置' => 'Setting',
|
||||
'流程设计' => 'Design',
|
||||
'表单设计' => 'FormDesign',
|
||||
'基础功能' => 'BasicFunc',
|
||||
'流程类型' => 'Type',
|
||||
'委托设置' => 'Delegate',
|
||||
'流程定义' => 'Definition',
|
||||
'我的申请' => 'MyRequest',
|
||||
'我的收藏' => 'Bookmark',
|
||||
'我的已办' => 'Completed',
|
||||
'待阅' => 'PendingRead',
|
||||
'待办' => 'Todo',
|
||||
'发起' => 'Launch',
|
||||
'恢复' => 'Restore',
|
||||
|
||||
//开发平台
|
||||
'开发平台' => 'Dev',
|
||||
'代码生成' => 'CodeGeneration',
|
||||
'定时任务' => 'ScheduledTasks',
|
||||
'网关管理' => 'Gateway',
|
||||
'限流规则' => 'Rate Limiting Rules',
|
||||
'限访名单' => 'Access Restriction List',
|
||||
'在线开发' => 'Online Development',
|
||||
//平台管理
|
||||
'平台管理' => 'Platform',
|
||||
'账套管理' => 'AccountManagement',
|
||||
'账套中心' => 'AccountCenter',
|
||||
'多数据源' => 'MultiDataSource',
|
||||
//人工智能
|
||||
'人工智能' => 'AI',
|
||||
'智能问答' => 'Agent',
|
||||
|
||||
];
|
||||
@@ -0,0 +1,330 @@
|
||||
<?php
|
||||
/**
|
||||
*+------------------
|
||||
* madong - System Default Language Package
|
||||
*+------------------
|
||||
* Copyright (c) https://gitee.com/motion-code All rights reserved.
|
||||
*+------------------
|
||||
* Author: Mr. April (405784684@qq.com)
|
||||
*+------------------
|
||||
* Official Website: https://madong.tech
|
||||
*/
|
||||
|
||||
return [
|
||||
// User Management
|
||||
'user' => [
|
||||
'title' => 'User Management',
|
||||
'not_exist' => 'User does not exist',
|
||||
'create_success' => 'User created successfully',
|
||||
'create_fail' => 'User creation failed',
|
||||
'update_success' => 'User updated successfully',
|
||||
'update_fail' => 'User update failed',
|
||||
'delete_success' => 'User deleted successfully',
|
||||
'delete_fail' => 'User deletion failed',
|
||||
'enable_success' => 'User enabled successfully',
|
||||
'enable_fail' => 'User enable failed',
|
||||
'disable_success' => 'User disabled successfully',
|
||||
'disable_fail' => 'User disable failed',
|
||||
'lock_success' => 'User locked successfully',
|
||||
'lock_fail' => 'User lock failed',
|
||||
'unlock_success' => 'User unlocked successfully',
|
||||
'unlock_fail' => 'User unlock failed',
|
||||
'password_reset_success' => 'Password reset successfully',
|
||||
'password_reset_fail' => 'Password reset failed',
|
||||
'username_exist' => 'Username already exists',
|
||||
'email_exist' => 'Email already exists',
|
||||
'mobile_exist' => 'Mobile number already exists',
|
||||
'admin_not_editable' => 'Super admin cannot be edited',
|
||||
'admin_not_deletable' => 'Super admin cannot be deleted',
|
||||
],
|
||||
|
||||
// Role Management
|
||||
'role' => [
|
||||
'title' => 'Role Management',
|
||||
'not_exist' => 'Role does not exist',
|
||||
'create_success' => 'Role created successfully',
|
||||
'create_fail' => 'Role creation failed',
|
||||
'update_success' => 'Role updated successfully',
|
||||
'update_fail' => 'Role update failed',
|
||||
'delete_success' => 'Role deleted successfully',
|
||||
'delete_fail' => 'Role deletion failed',
|
||||
'assign_success' => 'Role assigned successfully',
|
||||
'assign_fail' => 'Role assignment failed',
|
||||
'admin_role_not_editable' => 'Admin role cannot be edited',
|
||||
'admin_role_not_deletable' => 'Admin role cannot be deleted',
|
||||
'in_use' => 'Role is in use, cannot be deleted',
|
||||
'permission' => [
|
||||
'assign_success' => 'Permission assigned successfully',
|
||||
'assign_fail' => 'Permission assignment failed',
|
||||
'update_success' => 'Permission updated successfully',
|
||||
'update_fail' => 'Permission update failed',
|
||||
],
|
||||
],
|
||||
|
||||
// Menu Management
|
||||
'menu' => [
|
||||
'title' => 'Menu Management',
|
||||
'not_exist' => 'Menu does not exist',
|
||||
'create_success' => 'Menu created successfully',
|
||||
'create_fail' => 'Menu creation failed',
|
||||
'update_success' => 'Menu updated successfully',
|
||||
'update_fail' => 'Menu update failed',
|
||||
'delete_success' => 'Menu deleted successfully',
|
||||
'delete_fail' => 'Menu deletion failed',
|
||||
'move_success' => 'Menu moved successfully',
|
||||
'move_fail' => 'Menu move failed',
|
||||
'has_children' => 'Has submenus, cannot be deleted',
|
||||
'type' => [
|
||||
'directory' => 'Directory',
|
||||
'menu' => 'Menu',
|
||||
'button' => 'Button',
|
||||
],
|
||||
'status' => [
|
||||
'enabled' => 'Enabled',
|
||||
'disabled' => 'Disabled',
|
||||
],
|
||||
],
|
||||
|
||||
// Data Dictionary
|
||||
'dict' => [
|
||||
'title' => 'Data Dictionary',
|
||||
'not_exist' => 'Dictionary does not exist',
|
||||
'create_success' => 'Dictionary created successfully',
|
||||
'create_fail' => 'Dictionary creation failed',
|
||||
'update_success' => 'Dictionary updated successfully',
|
||||
'update_fail' => 'Dictionary update failed',
|
||||
'delete_success' => 'Dictionary deleted successfully',
|
||||
'delete_fail' => 'Dictionary deletion failed',
|
||||
'item' => [
|
||||
'not_exist' => 'Dictionary item does not exist',
|
||||
'create_success' => 'Dictionary item created successfully',
|
||||
'create_fail' => 'Dictionary item creation failed',
|
||||
'update_success' => 'Dictionary item updated successfully',
|
||||
'update_fail' => 'Dictionary item update failed',
|
||||
'delete_success' => 'Dictionary item deleted successfully',
|
||||
'delete_fail' => 'Dictionary item deletion failed',
|
||||
],
|
||||
],
|
||||
|
||||
// Department Management
|
||||
'dept' => [
|
||||
'title' => 'Department Management',
|
||||
'not_exist' => 'Department does not exist',
|
||||
'create_success' => 'Department created successfully',
|
||||
'create_fail' => 'Department creation failed',
|
||||
'update_success' => 'Department updated successfully',
|
||||
'update_fail' => 'Department update failed',
|
||||
'delete_success' => 'Department deleted successfully',
|
||||
'delete_fail' => 'Department deletion failed',
|
||||
'has_children' => 'Has subdepartments, cannot be deleted',
|
||||
'has_users' => 'Has users, cannot be deleted',
|
||||
],
|
||||
|
||||
// Post Management
|
||||
'post' => [
|
||||
'title' => 'Post Management',
|
||||
'not_exist' => 'Post does not exist',
|
||||
'create_success' => 'Post created successfully',
|
||||
'create_fail' => 'Post creation failed',
|
||||
'update_success' => 'Post updated successfully',
|
||||
'update_fail' => 'Post update failed',
|
||||
'delete_success' => 'Post deleted successfully',
|
||||
'delete_fail' => 'Post deletion failed',
|
||||
'has_users' => 'Has users, cannot be deleted',
|
||||
],
|
||||
|
||||
// System Configuration
|
||||
'config' => [
|
||||
'title' => 'System Configuration',
|
||||
'not_exist' => 'Configuration does not exist',
|
||||
'update_success' => 'Configuration updated successfully',
|
||||
'update_fail' => 'Configuration update failed',
|
||||
'group' => [
|
||||
'system' => 'System Settings',
|
||||
'security' => 'Security Settings',
|
||||
'mail' => 'Mail Settings',
|
||||
'sms' => 'SMS Settings',
|
||||
'storage' => 'Storage Settings',
|
||||
],
|
||||
'cache_cleared' => 'Configuration cache cleared',
|
||||
],
|
||||
|
||||
// Recycle Bin
|
||||
'recycle' => [
|
||||
'title' => 'Recycle Bin',
|
||||
'not_exist' => 'Recycle item does not exist',
|
||||
'recycle_success' => 'Data recycled successfully',
|
||||
'recycle_fail' => 'Data recycle failed',
|
||||
'restore_success' => 'Data restored successfully',
|
||||
'restore_fail' => 'Data restore failed',
|
||||
'delete_success' => 'Data permanently deleted successfully',
|
||||
'delete_fail' => 'Data permanent deletion failed',
|
||||
'empty_success' => 'Recycle bin emptied successfully',
|
||||
'empty_fail' => 'Recycle bin empty failed',
|
||||
'type' => [
|
||||
'user' => 'User',
|
||||
'role' => 'Role',
|
||||
'menu' => 'Menu',
|
||||
'dept' => 'Department',
|
||||
'post' => 'Post',
|
||||
'dict' => 'Dictionary',
|
||||
'attachment' => 'Attachment',
|
||||
],
|
||||
],
|
||||
|
||||
// Operate Log
|
||||
'operate_log' => [
|
||||
'title' => 'Operate Log',
|
||||
'not_exist' => 'Log does not exist',
|
||||
'clear_success' => 'Log cleared successfully',
|
||||
'clear_fail' => 'Log clear failed',
|
||||
'export_success' => 'Log exported successfully',
|
||||
'export_fail' => 'Log export failed',
|
||||
'type' => [
|
||||
'add' => 'Add',
|
||||
'edit' => 'Edit',
|
||||
'delete' => 'Delete',
|
||||
'login' => 'Login',
|
||||
'logout' => 'Logout',
|
||||
'upload' => 'Upload',
|
||||
'download' => 'Download',
|
||||
],
|
||||
'result' => [
|
||||
'success' => 'Success',
|
||||
'fail' => 'Fail',
|
||||
],
|
||||
],
|
||||
|
||||
// Login Log
|
||||
'login_log' => [
|
||||
'title' => 'Login Log',
|
||||
'not_exist' => 'Log does not exist',
|
||||
'clear_success' => 'Log cleared successfully',
|
||||
'clear_fail' => 'Log clear failed',
|
||||
'export_success' => 'Log exported successfully',
|
||||
'export_fail' => 'Log export failed',
|
||||
'status' => [
|
||||
'success' => 'Success',
|
||||
'fail' => 'Fail',
|
||||
],
|
||||
'type' => [
|
||||
'web' => 'Web Login',
|
||||
'mobile' => 'Mobile Login',
|
||||
'api' => 'API Login',
|
||||
'third_party' => 'Third Party Login',
|
||||
],
|
||||
],
|
||||
|
||||
// Crontab Task
|
||||
'crontab' => [
|
||||
'title' => 'Crontab Task',
|
||||
'not_exist' => 'Task does not exist',
|
||||
'create_success' => 'Task created successfully',
|
||||
'create_fail' => 'Task creation failed',
|
||||
'update_success' => 'Task updated successfully',
|
||||
'update_fail' => 'Task update failed',
|
||||
'delete_success' => 'Task deleted successfully',
|
||||
'delete_fail' => 'Task deletion failed',
|
||||
'start_success' => 'Task started successfully',
|
||||
'start_fail' => 'Task start failed',
|
||||
'stop_success' => 'Task stopped successfully',
|
||||
'stop_fail' => 'Task stop failed',
|
||||
'run_success' => 'Task executed successfully',
|
||||
'run_fail' => 'Task execution failed',
|
||||
'status' => [
|
||||
'enabled' => 'Enabled',
|
||||
'disabled' => 'Disabled',
|
||||
'running' => 'Running',
|
||||
],
|
||||
'type' => [
|
||||
'command' => 'Command',
|
||||
'callback' => 'Callback',
|
||||
'url' => 'URL Request',
|
||||
],
|
||||
'log' => [
|
||||
'title' => 'Task Log',
|
||||
'not_exist' => 'Log does not exist',
|
||||
'clear_success' => 'Log cleared successfully',
|
||||
'clear_fail' => 'Log clear failed',
|
||||
],
|
||||
],
|
||||
// Message Management
|
||||
'message' => [
|
||||
'title' => 'Message Management',
|
||||
'not_exist' => 'Message does not exist',
|
||||
'create_success' => 'Message created successfully',
|
||||
'create_fail' => 'Message creation failed',
|
||||
'update_success' => 'Message updated successfully',
|
||||
'update_fail' => 'Message update failed',
|
||||
'delete_success' => 'Message deleted successfully',
|
||||
'delete_fail' => 'Message deletion failed',
|
||||
'send_success' => 'Message sent successfully',
|
||||
'send_fail' => 'Message sending failed',
|
||||
'read_success' => 'Message marked as read',
|
||||
'type' => [
|
||||
'system' => 'System Message',
|
||||
'notification' => 'Notification',
|
||||
'private' => 'Private Message',
|
||||
],
|
||||
'status' => [
|
||||
'unread' => 'Unread',
|
||||
'read' => 'Read',
|
||||
'deleted' => 'Deleted',
|
||||
],
|
||||
],
|
||||
|
||||
// Notification Management
|
||||
'notification' => [
|
||||
'title' => 'Notification Management',
|
||||
'not_exist' => 'Notification does not exist',
|
||||
'create_success' => 'Notification created successfully',
|
||||
'create_fail' => 'Notification creation failed',
|
||||
'update_success' => 'Notification updated successfully',
|
||||
'update_fail' => 'Notification update failed',
|
||||
'delete_success' => 'Notification deleted successfully',
|
||||
'delete_fail' => 'Notification deletion failed',
|
||||
'publish_success' => 'Notification published successfully',
|
||||
'publish_fail' => 'Notification publishing failed',
|
||||
'type' => [
|
||||
'system' => 'System Notification',
|
||||
'announcement' => 'Announcement',
|
||||
'reminder' => 'Reminder',
|
||||
],
|
||||
'status' => [
|
||||
'draft' => 'Draft',
|
||||
'published' => 'Published',
|
||||
'expired' => 'Expired',
|
||||
],
|
||||
],
|
||||
|
||||
// Attachment Management
|
||||
'attachment' => [
|
||||
'title' => 'Attachment Management',
|
||||
'not_exist' => 'Attachment does not exist',
|
||||
'upload_success' => 'Attachment uploaded successfully',
|
||||
'upload_fail' => 'Attachment upload failed',
|
||||
'download_success' => 'Attachment downloaded successfully',
|
||||
'download_fail' => 'Attachment download failed',
|
||||
'delete_success' => 'Attachment deleted successfully',
|
||||
'delete_fail' => 'Attachment deletion failed',
|
||||
'type' => [
|
||||
'image' => 'Image',
|
||||
'document' => 'Document',
|
||||
'video' => 'Video',
|
||||
'audio' => 'Audio',
|
||||
'other' => 'Other',
|
||||
],
|
||||
'size_exceed' => 'File size exceeds limit',
|
||||
'type_not_allowed' => 'File type not allowed',
|
||||
],
|
||||
'plugin' => [
|
||||
'error' => [
|
||||
'repeat_install' => 'Plugin is already installed...',
|
||||
'not_uninstall' => 'Plugin is not installed...',
|
||||
'info_file_not_exist' => 'Plugin info.json file not found',
|
||||
'dependency_missing' => 'Dependency plugin :name is missing',
|
||||
'config_invalid' => 'Plugin config file is invalid',
|
||||
],
|
||||
],
|
||||
|
||||
];
|
||||
@@ -0,0 +1,197 @@
|
||||
<?php
|
||||
/**
|
||||
* @link https://raw.githubusercontent.com/laravel/framework/refs/heads/11.x/src/Illuminate/Translation/lang/en/validation.php
|
||||
*/
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Validation Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines contain the default error messages used by
|
||||
| the validator class. Some of these rules have multiple versions such
|
||||
| as the size rules. Feel free to tweak each of these messages here.
|
||||
|
|
||||
*/
|
||||
|
||||
'accepted' => 'The :attribute field must be accepted.',
|
||||
'accepted_if' => 'The :attribute field must be accepted when :other is :value.',
|
||||
'active_url' => 'The :attribute field must be a valid URL.',
|
||||
'after' => 'The :attribute field must be a date after :date.',
|
||||
'after_or_equal' => 'The :attribute field must be a date after or equal to :date.',
|
||||
'alpha' => 'The :attribute field must only contain letters.',
|
||||
'alpha_dash' => 'The :attribute field must only contain letters, numbers, dashes, and underscores.',
|
||||
'alpha_num' => 'The :attribute field must only contain letters and numbers.',
|
||||
'array' => 'The :attribute field must be an array.',
|
||||
'ascii' => 'The :attribute field must only contain single-byte alphanumeric characters and symbols.',
|
||||
'before' => 'The :attribute field must be a date before :date.',
|
||||
'before_or_equal' => 'The :attribute field must be a date before or equal to :date.',
|
||||
'between' => [
|
||||
'array' => 'The :attribute field must have between :min and :max items.',
|
||||
'file' => 'The :attribute field must be between :min and :max kilobytes.',
|
||||
'numeric' => 'The :attribute field must be between :min and :max.',
|
||||
'string' => 'The :attribute field must be between :min and :max characters.',
|
||||
],
|
||||
'boolean' => 'The :attribute field must be true or false.',
|
||||
'can' => 'The :attribute field contains an unauthorized value.',
|
||||
'confirmed' => 'The :attribute field confirmation does not match.',
|
||||
'contains' => 'The :attribute field is missing a required value.',
|
||||
'current_password' => 'The password is incorrect.',
|
||||
'date' => 'The :attribute field must be a valid date.',
|
||||
'date_equals' => 'The :attribute field must be a date equal to :date.',
|
||||
'date_format' => 'The :attribute field must match the format :format.',
|
||||
'decimal' => 'The :attribute field must have :decimal decimal places.',
|
||||
'declined' => 'The :attribute field must be declined.',
|
||||
'declined_if' => 'The :attribute field must be declined when :other is :value.',
|
||||
'different' => 'The :attribute field and :other must be different.',
|
||||
'digits' => 'The :attribute field must be :digits digits.',
|
||||
'digits_between' => 'The :attribute field must be between :min and :max digits.',
|
||||
'dimensions' => 'The :attribute field has invalid image dimensions.',
|
||||
'distinct' => 'The :attribute field has a duplicate value.',
|
||||
'doesnt_end_with' => 'The :attribute field must not end with one of the following: :values.',
|
||||
'doesnt_start_with' => 'The :attribute field must not start with one of the following: :values.',
|
||||
'email' => 'The :attribute field must be a valid email address.',
|
||||
'ends_with' => 'The :attribute field must end with one of the following: :values.',
|
||||
'enum' => 'The selected :attribute is invalid.',
|
||||
'exists' => 'The selected :attribute is invalid.',
|
||||
'extensions' => 'The :attribute field must have one of the following extensions: :values.',
|
||||
'file' => 'The :attribute field must be a file.',
|
||||
'filled' => 'The :attribute field must have a value.',
|
||||
'gt' => [
|
||||
'array' => 'The :attribute field must have more than :value items.',
|
||||
'file' => 'The :attribute field must be greater than :value kilobytes.',
|
||||
'numeric' => 'The :attribute field must be greater than :value.',
|
||||
'string' => 'The :attribute field must be greater than :value characters.',
|
||||
],
|
||||
'gte' => [
|
||||
'array' => 'The :attribute field must have :value items or more.',
|
||||
'file' => 'The :attribute field must be greater than or equal to :value kilobytes.',
|
||||
'numeric' => 'The :attribute field must be greater than or equal to :value.',
|
||||
'string' => 'The :attribute field must be greater than or equal to :value characters.',
|
||||
],
|
||||
'hex_color' => 'The :attribute field must be a valid hexadecimal color.',
|
||||
'image' => 'The :attribute field must be an image.',
|
||||
'in' => 'The selected :attribute is invalid.',
|
||||
'in_array' => 'The :attribute field must exist in :other.',
|
||||
'integer' => 'The :attribute field must be an integer.',
|
||||
'ip' => 'The :attribute field must be a valid IP address.',
|
||||
'ipv4' => 'The :attribute field must be a valid IPv4 address.',
|
||||
'ipv6' => 'The :attribute field must be a valid IPv6 address.',
|
||||
'json' => 'The :attribute field must be a valid JSON string.',
|
||||
'list' => 'The :attribute field must be a list.',
|
||||
'lowercase' => 'The :attribute field must be lowercase.',
|
||||
'lt' => [
|
||||
'array' => 'The :attribute field must have less than :value items.',
|
||||
'file' => 'The :attribute field must be less than :value kilobytes.',
|
||||
'numeric' => 'The :attribute field must be less than :value.',
|
||||
'string' => 'The :attribute field must be less than :value characters.',
|
||||
],
|
||||
'lte' => [
|
||||
'array' => 'The :attribute field must not have more than :value items.',
|
||||
'file' => 'The :attribute field must be less than or equal to :value kilobytes.',
|
||||
'numeric' => 'The :attribute field must be less than or equal to :value.',
|
||||
'string' => 'The :attribute field must be less than or equal to :value characters.',
|
||||
],
|
||||
'mac_address' => 'The :attribute field must be a valid MAC address.',
|
||||
'max' => [
|
||||
'array' => 'The :attribute field must not have more than :max items.',
|
||||
'file' => 'The :attribute field must not be greater than :max kilobytes.',
|
||||
'numeric' => 'The :attribute field must not be greater than :max.',
|
||||
'string' => 'The :attribute field must not be greater than :max characters.',
|
||||
],
|
||||
'max_digits' => 'The :attribute field must not have more than :max digits.',
|
||||
'mimes' => 'The :attribute field must be a file of type: :values.',
|
||||
'mimetypes' => 'The :attribute field must be a file of type: :values.',
|
||||
'min' => [
|
||||
'array' => 'The :attribute field must have at least :min items.',
|
||||
'file' => 'The :attribute field must be at least :min kilobytes.',
|
||||
'numeric' => 'The :attribute field must be at least :min.',
|
||||
'string' => 'The :attribute field must be at least :min characters.',
|
||||
],
|
||||
'min_digits' => 'The :attribute field must have at least :min digits.',
|
||||
'missing' => 'The :attribute field must be missing.',
|
||||
'missing_if' => 'The :attribute field must be missing when :other is :value.',
|
||||
'missing_unless' => 'The :attribute field must be missing unless :other is :value.',
|
||||
'missing_with' => 'The :attribute field must be missing when :values is present.',
|
||||
'missing_with_all' => 'The :attribute field must be missing when :values are present.',
|
||||
'multiple_of' => 'The :attribute field must be a multiple of :value.',
|
||||
'not_in' => 'The selected :attribute is invalid.',
|
||||
'not_regex' => 'The :attribute field format is invalid.',
|
||||
'numeric' => 'The :attribute field must be a number.',
|
||||
'password' => [
|
||||
'letters' => 'The :attribute field must contain at least one letter.',
|
||||
'mixed' => 'The :attribute field must contain at least one uppercase and one lowercase letter.',
|
||||
'numbers' => 'The :attribute field must contain at least one number.',
|
||||
'symbols' => 'The :attribute field must contain at least one symbol.',
|
||||
'uncompromised' => 'The given :attribute has appeared in a data leak. Please choose a different :attribute.',
|
||||
],
|
||||
'present' => 'The :attribute field must be present.',
|
||||
'present_if' => 'The :attribute field must be present when :other is :value.',
|
||||
'present_unless' => 'The :attribute field must be present unless :other is :value.',
|
||||
'present_with' => 'The :attribute field must be present when :values is present.',
|
||||
'present_with_all' => 'The :attribute field must be present when :values are present.',
|
||||
'prohibited' => 'The :attribute field is prohibited.',
|
||||
'prohibited_if' => 'The :attribute field is prohibited when :other is :value.',
|
||||
'prohibited_unless' => 'The :attribute field is prohibited unless :other is in :values.',
|
||||
'prohibits' => 'The :attribute field prohibits :other from being present.',
|
||||
'regex' => 'The :attribute field format is invalid.',
|
||||
'required' => 'The :attribute field is required.',
|
||||
'required_array_keys' => 'The :attribute field must contain entries for: :values.',
|
||||
'required_if' => 'The :attribute field is required when :other is :value.',
|
||||
'required_if_accepted' => 'The :attribute field is required when :other is accepted.',
|
||||
'required_if_declined' => 'The :attribute field is required when :other is declined.',
|
||||
'required_unless' => 'The :attribute field is required unless :other is in :values.',
|
||||
'required_with' => 'The :attribute field is required when :values is present.',
|
||||
'required_with_all' => 'The :attribute field is required when :values are present.',
|
||||
'required_without' => 'The :attribute field is required when :values is not present.',
|
||||
'required_without_all' => 'The :attribute field is required when none of :values are present.',
|
||||
'same' => 'The :attribute field must match :other.',
|
||||
'size' => [
|
||||
'array' => 'The :attribute field must contain :size items.',
|
||||
'file' => 'The :attribute field must be :size kilobytes.',
|
||||
'numeric' => 'The :attribute field must be :size.',
|
||||
'string' => 'The :attribute field must be :size characters.',
|
||||
],
|
||||
'starts_with' => 'The :attribute field must start with one of the following: :values.',
|
||||
'string' => 'The :attribute field must be a string.',
|
||||
'timezone' => 'The :attribute field must be a valid timezone.',
|
||||
'unique' => 'The :attribute has already been taken.',
|
||||
'uploaded' => 'The :attribute failed to upload.',
|
||||
'uppercase' => 'The :attribute field must be uppercase.',
|
||||
'url' => 'The :attribute field must be a valid URL.',
|
||||
'ulid' => 'The :attribute field must be a valid ULID.',
|
||||
'uuid' => 'The :attribute field must be a valid UUID.',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Custom Validation Language Lines
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may specify custom validation messages for attributes using the
|
||||
| convention "attribute.rule" to name the lines. This makes it quick to
|
||||
| specify a specific custom language line for a given attribute rule.
|
||||
|
|
||||
*/
|
||||
|
||||
'custom' => [
|
||||
'attribute-name' => [
|
||||
'rule-name' => 'custom-message',
|
||||
],
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Custom Validation Attributes
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The following language lines are used to swap our attribute placeholder
|
||||
| with something more reader friendly such as "E-Mail Address" instead
|
||||
| of "email". This simply helps us make our message more expressive.
|
||||
|
|
||||
*/
|
||||
|
||||
'attributes' => [],
|
||||
|
||||
];
|
||||
Reference in New Issue
Block a user