-
Notifications
You must be signed in to change notification settings - Fork 27.4k
Fix locale generation and update locales #6179
Comments
This is needed so that we get the current locales from closure into Angular and are able to fix #6164 correctly. |
I can't reproduce the problem. Both commands appear to complete successfully. Could you verify that this is still an issue? |
Yes, still a problem:
|
I see two approaches to fixing this problem:
Option 1 would be quicker, but I think option 2 would be cleaner. The parser is already pretty hairy, and it's only going to get worse. CLDR was designed to be parsed, but Closure's locale implementation was not. What do you think? Should we discuss this on the mailing list? |
I don't know CLDR do much, but it could be worth a try. @Iminar: What do you think? On Mon, Apr 28, 2014 at 9:42 PM, Evan Kroske [email protected]:
|
@IgorMinar FYI |
How to convert CLDR into JSON: http://cldr.unicode.org/index/cldr-spec/json |
Ah, CLDR is now available as JSON as well: http://cldr.unicode.org/index/json-format-data |
@caitp FYI |
So, the trouble with the (full) JSON data is that it's huuuuge --- 50mb for the zipped package, which could make releases take generally forever if it's automated. There is a much smaller collection of JSON data, however it doesn't contain all of the locales supported by closure-library, so I'm hesitant to use it. The XML version is a lot tinier than the (full) JSON data, and there are already tools written in node to process the XML, so I think it should be possible to put together a workable solution for generating this stuff for release --- although it's considerably much less effort to just continue using Closure's stuff. |
I think that we should use node-cldr to generate the locale data. I wrote a script to compare the data generated from node-cldr to what we have today: #7702 I think that the differences are caused by the fact that node-cldr is using newer version of CLDR. |
@evankroske that's actually what I've been working on over the past couple days, heh. we're doing this. (node-cldr seems to agree with me that having the fully processed json in the tree is a waste of diskspace, the xml is much tinier) |
…Script Adds missing number format and symbol rules to Closure slurper script. Closes angular#6179
…Script Adds missing number format and symbol rules to Closure slurper script. Closes angular#6179
After updating the google closure library locales, the locale generation fails.
The locale files then contain a reference to
goog.i18n.pluralRules.get_vf_
in thepluralCat
property.Update locale files:
i18n/update-closure.sh
i18n/generate.sh
Note: Right now no unit test if failing because of this, only jshint complains about it! We should really add unit tests for the locales as well (maybe in the i18n subfolder?).
Idea for solving this:
goog.i18n.pluralRules.get_vf_
to every locale file, and also the functions that this function is using.closureI18nExtractor.js
when this is implemented.The text was updated successfully, but these errors were encountered: