Comparing version
@@ -76,3 +76,7 @@ var Path = require('path'), | ||
this.getDocument(Path.resolve(this.cldrPath, 'common', 'bcp47', 'calendar.xml')).find('/ldmlBCP47/keyword/key[@name="ca"]/type').forEach(function (keyNode) { | ||
this._calendarIds.push(keyNode.attr('name').value()); | ||
var calendarId = keyNode.attr('name').value(); | ||
if (calendarId === 'gregory') { | ||
calendarId = 'gregorian'; | ||
} | ||
this._calendarIds.push(calendarId); | ||
}, this); | ||
@@ -79,0 +83,0 @@ } |
{ | ||
"name": "cldr", | ||
"version": "0.0.5", | ||
"version": "0.1.0", | ||
"description": "Library for extracting data from CLDR (the Unicode Common Locale Data Repository)", | ||
@@ -5,0 +5,0 @@ "main": "lib/Cldr.js", |
@@ -85,3 +85,3 @@ cldr | ||
[ 'buddhist', 'chinese', 'coptic', 'dangi', 'ethioaa', 'ethiopic', | ||
'gregory', 'hebrew', 'indian', 'islamic','islamicc', 'iso8601', | ||
'gregorian', 'hebrew', 'indian', 'islamic','islamicc', 'iso8601', | ||
'japanese', 'persian', 'roc' ] | ||
@@ -88,0 +88,0 @@ ``` |
81681
0.2%1021
0.39%