Skip to content

Commit bc1e497

Browse files
committed
fix: trim default data down
This brings it down to 20kB / 4kB gzipped Closes #3
1 parent 91f2bb4 commit bc1e497

File tree

2 files changed

+11
-1123
lines changed

2 files changed

+11
-1123
lines changed

gulpfile.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,8 @@ const cleanupCurrencies = (locale) => {
1616

1717
Object.keys(currencies).forEach(id => {
1818
const data = currencies[id];
19-
if (id === 'USD' || id === 'BGN') {
19+
if (id === 'USD' || id === 'EUR' || id === 'BGN') {
2020
subset[id] = data;
21-
} else {
22-
subset[id] = { 'symbol': data['symbol'], 'symbol-alt-narrow': data['symbol-alt-narrow'] };
2321
}
2422
});
2523

@@ -45,7 +43,12 @@ gulp.task("build-default-data", () => {
4543
}]
4644
}
4745
},
48-
weekData: cldr.cldr.supplemental.weekData
46+
"weekData": {
47+
"firstDay": {
48+
"001": "mon",
49+
"US": "sun"
50+
}
51+
}
4952
}
5053
};
5154
fs.writeFileSync('src/cldr/default-data.js', "const defaultData = " + JSON.stringify(defaultData, null, 4) + ";\nexport default defaultData;");

0 commit comments

Comments
 (0)