Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: adjust locale from zh_cn to zh_CN #1997

Merged

Conversation

rolin999
Copy link
Collaborator

Description

Django 版本升级后,运行 python manage.py makemessages -d django -l zh_cn -e html,part -e py 时,会出现:
invalid locale zh_cn, did you mean zh_CN?

通过查看源码发现 Django 对于 locale 的是否有效的判断规则发生了变化:

升级前:
截图1

升级后:
截图2
截图3

因此 zh_cn 需要更正为 zh_CN,于是将 makefile 中的命令做了更改。

Checklist

  • 填写 PR 描述及相关 issue (write PR description and related issue)
  • 代码风格检查通过 (code style check passed)
  • PR 中包含单元测试 (include unit test)
  • 单元测试通过 (unit test passed)
  • 本地开发联调环境验证通过 (local development environment verification passed)

@nannan00 nannan00 merged commit c8e1819 into TencentBlueKing:main Nov 30, 2024
6 checks passed
JoJohw added a commit to JoJohw/bk-user that referenced this pull request Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants