refactor: 重构语言协商中间件,简化语言解析逻辑并增强异常处理,更新相关配置以支持多环境开发

This commit is contained in:
2026-05-08 17:40:09 +08:00
parent 85e57782cc
commit e478597d13
11 changed files with 295 additions and 54 deletions

9
lang/en/api.php Normal file
View File

@@ -0,0 +1,9 @@
<?php
return [
'validation_failed' => 'The given data was invalid.',
'client_error' => 'This request could not be completed.',
'not_found' => 'The requested resource was not found.',
'too_many_requests' => 'Too many requests. Please try again later.',
'server_error' => 'Something went wrong. Please try again later.',
];