Skip to content

Commit 6d80f57

Browse files
committed
fix: include minimal CLDR data to function in en-US
1 parent 5ea2888 commit 6d80f57

File tree

3 files changed

+26
-2
lines changed

3 files changed

+26
-2
lines changed

gulpfile.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,22 @@ const fs = require('fs');
1010

1111
require('@telerik/kendo-package-tasks')(gulp, 'kendo-intl');
1212

13-
gulp.task("build-default-data", ["build-npm-package"], () => {
13+
gulp.task("build-default-data", () => {
1414
const cldr = require("./dist/npm/js/cldr");
1515
cldr.load(likelySubtags, currencyData, weekData, numbers, currencies, timeZoneNames, calendar);
1616
const defaultData = {
1717
en: cldr.cldr.en,
1818
supplemental: {
19+
likelySubtags: {
20+
en: "en-Latn-US"
21+
},
22+
currencyData: {
23+
region: {
24+
"US": [{
25+
"USD": { "_from": "1792-01-01" }
26+
}]
27+
}
28+
},
1929
weekData: cldr.cldr.supplemental.weekData
2030
}
2131
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"main": "dist/npm/js/main.js",
1010
"typings": "dist/npm/js/main",
1111
"scripts": {
12-
"build-package": "gulp build-default-data",
12+
"build-package": "gulp build-npm-package",
1313
"test": "gulp test",
1414
"lint": "gulp lint",
1515
"semantic-release": "semantic-release pre && npm publish && semantic-release post"

src/cldr/default-data.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2433,6 +2433,20 @@ const defaultData = {
24332433
}
24342434
},
24352435
"supplemental": {
2436+
"likelySubtags": {
2437+
"en": "en-Latn-US"
2438+
},
2439+
"currencyData": {
2440+
"region": {
2441+
"US": [
2442+
{
2443+
"USD": {
2444+
"_from": "1792-01-01"
2445+
}
2446+
}
2447+
]
2448+
}
2449+
},
24362450
"weekData": {
24372451
"firstDay": {
24382452
"001": "mon",

0 commit comments

Comments
 (0)