Skip to content
This repository was archived by the owner on Apr 14, 2021. It is now read-only.

Commit 6a1ab87

Browse files
committed
Removed non-gregorian calendars. API is not supported, so data might be excluded as well. Tests seems to work fine without.
1 parent 6851426 commit 6a1ab87

File tree

2 files changed

+1
-23
lines changed

2 files changed

+1
-23
lines changed

package.json

-11
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,6 @@
2222
"babel-preset-es2015": "6.1.18",
2323
"babel-preset-es2015-rollup": "1.1.1",
2424
"babel-register": "^6.2.0",
25-
"cldr-cal-buddhist-full": "28.0.0",
26-
"cldr-cal-chinese-full": "28.0.0",
27-
"cldr-cal-coptic-full": "28.0.0",
28-
"cldr-cal-dangi-full": "28.0.0",
29-
"cldr-cal-ethiopic-full": "28.0.0",
30-
"cldr-cal-hebrew-full": "28.0.0",
31-
"cldr-cal-indian-full": "28.0.0",
32-
"cldr-cal-islamic-full": "28.0.0",
33-
"cldr-cal-japanese-full": "28.0.0",
34-
"cldr-cal-persian-full": "28.0.0",
35-
"cldr-cal-roc-full": "28.0.0",
3625
"cldr-core": "28.0.0",
3726
"cldr-dates-full": "28.0.0",
3827
"cldr-numbers-full": "28.0.0",

scripts/utils/extract-calendars.js

+1-12
Original file line numberDiff line numberDiff line change
@@ -63,18 +63,7 @@ export default function extractCalendars(locales) {
6363
function loadCalendars(locale) {
6464
// all NPM packages providing calendars specific data
6565
let pkgs = [
66-
"cldr-dates-full",
67-
"cldr-cal-buddhist-full",
68-
"cldr-cal-chinese-full",
69-
"cldr-cal-coptic-full",
70-
"cldr-cal-dangi-full",
71-
"cldr-cal-ethiopic-full",
72-
"cldr-cal-hebrew-full",
73-
"cldr-cal-indian-full",
74-
"cldr-cal-islamic-full",
75-
"cldr-cal-japanese-full",
76-
"cldr-cal-persian-full",
77-
"cldr-cal-roc-full"
66+
"cldr-dates-full"
7867
];
7968
// walking all packages, selecting calendar files, then
8069
// reading the content of each calendar, and concatenating the set

0 commit comments

Comments
 (0)