-
Notifications
You must be signed in to change notification settings - Fork 7k
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
zh language file missing #1494
Comments
That Wikipedia talk page isn't very dispositive on that; it's mostly about how localization identifiers have been interchanged with character set identifiers, and I have no idea how that relates to the actual differences in the two Moment files. I think we need a bit more clarity on whether, in a geopolitical sense, making 'zh' return the current 'zh-cn' in the right thing to do. It makes sense and all, but it will be hard to undo, so I'd like to get some more opinions. CLDR does just have a single The actual way to make the change is to rename the 'zh-cn' file to 'zh' and moment will do the right thing when the user requests 'zh-cn'. |
How can setting the language in firefox throw an error in node? Are the tests failing, or moment website? |
here are a few different implementations:
when on the server, moment requires in the file internally. when on the client, we get the lang file and append it to thus when firefox requests zh, there is no zh.js and the GET request fails (node server cannot find zh.js). hope that all makes sense; if you need any more info I will be happy to provide it. |
Why don't you simlink zh.js to zh-cn.js on the server end. Otherwise I don't think its politically correct to rename it. |
not every platform has symlink available. my enterprise is hosted in azure. |
Cant you manually copy the lang file?
|
(: Yes, already done. |
Why is this closed? |
setting language to "Chinese [zh]" in firefox throws a ENOENT error in node when zh tries to require.
as far as i can tell, zn-ch == zn. (ref @ http://en.wikipedia.org/wiki/Wikipedia_talk:Chinese_interlanguage_links)
solution is to simply copy the zh-cn.js --> zh.js
(thus resulting in lang. being required and no server error.)
The text was updated successfully, but these errors were encountered: