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 to zh-CN, or make a copy for zh-CN #41

Open
jung-hunsoo opened this issue Mar 31, 2017 · 1 comment
Open

Rename zh to zh-CN, or make a copy for zh-CN #41

jung-hunsoo opened this issue Mar 31, 2017 · 1 comment

Comments

@jung-hunsoo
Copy link

As for a popular i18n gem, rails-i18n provides zh-CN, zh-HK, zh-TW, and zh-YUE locales for Chinese languages. And :zh in i18n-country-translations gem seems to be matched with zh-CN.

To rename the locale code or make a copy for zh-CN would be profit for better compatibilities among discrete RoR i18n world.

@fanjieqi
Copy link

fanjieqi commented Dec 7, 2017

You could add this to your config/application.rb:
config.i18n.fallbacks = {"zh-CN" => [:zh]}
And the key couldn't be found in the zh-CN.yaml would be found in the zh.yml.

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

No branches or pull requests

2 participants