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(plugin-locale):使国际化不仅限于[a-z]{2}${separator}[A-Z]{2}的格式 #957

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

LinnerOhara
Copy link

使国际化不仅限于[a-z]{2}${separator}[A-Z]{2}的格式。主要是为了兼容部分应用场景,例如我遇到的问题,后端服务购买了ABP的商业版,此时为了便于维护,需要前后端对于多语言的键,例如常见的为 zh-CN,但ABP的为 zh-Hans,此时就导致插件无法识别 zh-Hans的多语言文件。
我认为不应该过于约束多语言文件的命名,或者说提供修改的方法。

考虑到可能有人会在locales内存放其他ts文件,该改动会导致他们获取到意料之外的多语言列表,因此分隔符前的规则不变

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.

None yet

1 participant