I am migrating from Globalize.js V0.0.1 to V1.0.0. In V0.0.1 it was possible to access the loaded culture data as you can see below. How can I access the data with current version 1.0.0.
var culture = Globalize.culture("en-US");
culture.calendar.months.names; // returns: ["January", "February", "March", ...
culture.calendar.days.names; // returns: ["Sunday", "Monday", "Tuesday", ...
Thank you very much in advance!
In Globalize 0.x, the i18n content was mixed/embedded into the library. Now in Globalize 1.x, we use external CLDR.
CLDR can be accessed via https://github.com/unicode-cldr/, or you can get it installed locally with:
Globalize, under the hoods, traverse CLDR data using Cldrjs. You can use it yourself independently of Globalize to traverse CLDR data, for example:
If you are already using Globalize, you can access this data using its own Cldrjs instance (for convenience):
More info at https://github.com/rxaviers/cldrjs and https://github.com/jquery/globalize
Just let me know on any question.