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

Rename zh.json to zh_CN.json #511

Closed
wants to merge 1 commit into from
Closed

Rename zh.json to zh_CN.json #511

wants to merge 1 commit into from

Conversation

yf-hk
Copy link
Contributor

@yf-hk yf-hk commented May 20, 2016

This is for simplified Chinese so the correct locale should be zh_CN. For traditional Chinese it should be something like zh_HK or zh_TW.

This is for simplified Chinese so the correct locale should be zh_CN. For traditional Chinese it should be something like zh_HK or zh_TW.
@coveralls
Copy link

coveralls commented May 20, 2016

Coverage Status

Coverage remained the same at 100.0% when pulling e41cc24 on andyhu:patch-1 into 2a73ed4 on yargs:master.

@bcoe
Copy link
Member

bcoe commented May 20, 2016

@andyhu thank you. I have a concern though, this could break existing apps that were relying on the zh locale name; perhaps we should just have two locale files? zh.json and zh_CN.json?

@yf-hk
Copy link
Contributor Author

yf-hk commented May 20, 2016

Hi @bcoe, I have the same concern. However I'm a Chinese native speaker and I've never used the locale string 'zh' since it's quite different between Traditional Chinese and Simplified Chinese. As Chinese we can understand both of them though. Or maybe we can change it until next major release after something like zh_TW is available?

@bcoe
Copy link
Member

bcoe commented May 21, 2016

@andyhu let's just keep zh.json and zh_CN.json and in the next major we'll drop zh.json.

@yf-hk
Copy link
Contributor Author

yf-hk commented May 21, 2016

thanks @bcoe

@bcoe
Copy link
Member

bcoe commented May 21, 2016

@andyhu mind submitting a pull with both files, then I can give you credit for the work when I merge.

@maxrimue maxrimue mentioned this pull request May 27, 2016
10 tasks
@maxrimue maxrimue added the 5.x label May 27, 2016
@bcoe
Copy link
Member

bcoe commented Jun 1, 2016

@andyhu thank you for the contribution \o/ closing in favor of #519 which keeps zh.json, and adds zh_CN.json.

@bcoe bcoe closed this Jun 1, 2016
@bcoe
Copy link
Member

bcoe commented Aug 14, 2016

@andyhu give this a spin, I've landed your changes finally:

npm cache clear; npm i yargs@next

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants