Even though all major operating systems and programming languages/APIs have had locale support for at least a couple of decades, it seems that JavaScript still does not!
With JavaScript becoming more and more of a full application programming language both in the browser and on the server, the lack of real locale support is becoming a real problem.
Are there any proposals to add locale support as it exists in other languages to the EcmaScript standard? As part of the "harmony" project or anywhere else? I'd like to support and evangelize any such proposal.
(This is a followup to my previous question: Is it possible to determine the user locale's country as set in the OS from the browser in JavaScript?)
The best I have found so far is "ES Wiki": "a wiki for the ongoing specification work of Ecma TC39".
This wiki has a "globalization directory". The "Goals" section of this directory states, among other things:
Provide an API that complements the ECMAScript Language Specification with:
- Consistent, rich internationalization API, similar to what modern operating systems and internationalization libraries have today for C++ and Java.
- Consistent results (not 100% identical but comparable to the data collected in CLDR or the locale support on major platforms).
- Support for multiple locales per application.
- Identification of locales, time zones, currencies etc. using existing standards. Reuse of objects that are more expensive to create, like collators.
来源:https://stackoverflow.com/questions/11826566/is-there-any-current-proposal-i-can-follow-about-adding-proper-locale-support-to