Skip to content

国际化功能补充 #274

Closed

Description

@Yager-42

功能摘要 / 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

  • 我已经搜索了现有的 issues 和讨论,确认这不是重复建议
    I have searched existing issues and discussions, confirming this is not a duplicate suggestion

  • 这个功能符合项目的目标和范围
    This feature aligns with the project's goals and scope

  • 我理解这个功能可能需要时间来实现
    I understand this feature may take time to implement

  • 我愿意协助实现这个功能 (可选)
    I'm willing to help implement this feature (optional)

Activity

  1. added theissue type on Sep 1, 2025
  2. added
    in: fitIssues in FIT modules
    and removed on Sep 10, 2025
  3. added this to the 3.6.0 milestone on Sep 10, 2025
  4. CodeCasterX commented on Sep 15, 2025

    @CodeCasterX
    Member

    当前功能已经合入,还需要提供文档支持

  5. linked a pull request that will close this issueprovide i18n document supplementary #293on Sep 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions