Closed rxaviers closed 9 years ago
Slightly different implementation:
var cldrData = require("cldr-data");
// Load main/<all locales>/numbers.json.
cldrData.main("numbers").forEach( Cldr.load );
// or
cldrData.forEachMain(function(main) {
Cldr.load(main("numbers"));
});
// List all locales:
cldrData.availableLocales.forEach(function(locale) {
console.log(locale);
});
Suggestion: