### 功能摘要 / Feature Summary 通过解析http请求获取用户期望使用的地区 ### 功能类型 / Feature Type 全新功能 / New Feature ### 优先级 / Priority 中 - 有了更好 / Medium - Would be nice to have ### 问题描述 / Problem Description 在使用参数校验时,返回的参数校验信息的语言只能根据服务端所在的地区决定,同时当前框架中的国际化只支持用户手动实现请求解析方法来实现地区动态变化的功能,不方便后续的国际化应用开发。该类重复性的解析工作应该由框架提供对应的实现。 ### 建议的解决方案 / Proposed Solution 仿照Spring的实现,从http请求中解析cookie,Accept-Language或者参数,以此来设置线程上下文,为后续的一系列操作提供地区信息。 ### 替代方案 / Alternative Solutions _No response_ ### 确认事项 / Confirmations - [x] 我已经搜索了现有的 issues 和讨论,确认这不是重复建议 I have searched existing issues and discussions, confirming this is not a duplicate suggestion - [x] 这个功能符合项目的目标和范围 This feature aligns with the project's goals and scope - [x] 我理解这个功能可能需要时间来实现 I understand this feature may take time to implement - [x] 我愿意协助实现这个功能 (可选) I'm willing to help implement this feature (optional)
Activity
CodeCasterX commentedon Sep 15, 2025
当前功能已经合入,还需要提供文档支持