Skip to content

Commit 33d250f

Browse files
ocombemhevery
authored andcommitted
build(common): extract i18n locale data from cldr (angular#18284)
PR Close angular#18284
1 parent 409688f commit 33d250f

File tree

12 files changed

+923
-209
lines changed

12 files changed

+923
-209
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ bazel-*
55
e2e_test.*
66
node_modules
77
bower_components
8+
tools/gulp-tasks/cldr/cldr-data/
89

910
# Include when developing application packages.
1011
pubspec.lock

gulpfile.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,5 @@ gulp.task('serve', loadTask('serve', 'default'));
4242
gulp.task('serve-examples', loadTask('serve', 'examples'));
4343
gulp.task('changelog', loadTask('changelog'));
4444
gulp.task('check-env', () => {/* this is a noop because the env test ran already above */});
45+
gulp.task('cldr:extract', loadTask('cldr', 'extract'));
46+
gulp.task('cldr:download', loadTask('cldr', 'download'));

karma-js.conf.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ module.exports = function(config) {
4747
pattern: 'packages/platform-browser/test/browser/static_assets/**',
4848
included: false,
4949
watched: false,
50-
}
50+
},
51+
{pattern: 'packages/common/i18n/**', included: false, watched: false, served: true},
5152
],
5253

5354
exclude: [

npm-shrinkwrap.clean.json

Lines changed: 84 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1542,7 +1542,7 @@
15421542
}
15431543
},
15441544
"cldr": {
1545-
"version": "3.5.2",
1545+
"version": "4.5.0",
15461546
"dependencies": {
15471547
"uglify-js": {
15481548
"version": "1.3.3"
@@ -1552,6 +1552,59 @@
15521552
}
15531553
}
15541554
},
1555+
"cldr-data-downloader": {
1556+
"version": "0.3.2",
1557+
"dependencies": {
1558+
"adm-zip": {
1559+
"version": "0.4.4"
1560+
},
1561+
"async": {
1562+
"version": "2.5.0"
1563+
},
1564+
"bl": {
1565+
"version": "1.1.2"
1566+
},
1567+
"form-data": {
1568+
"version": "1.0.1"
1569+
},
1570+
"isarray": {
1571+
"version": "1.0.0"
1572+
},
1573+
"lodash": {
1574+
"version": "4.17.4"
1575+
},
1576+
"mime-db": {
1577+
"version": "1.27.0"
1578+
},
1579+
"mime-types": {
1580+
"version": "2.1.15"
1581+
},
1582+
"minimist": {
1583+
"version": "0.0.8"
1584+
},
1585+
"mkdirp": {
1586+
"version": "0.5.0"
1587+
},
1588+
"q": {
1589+
"version": "1.0.1"
1590+
},
1591+
"qs": {
1592+
"version": "6.2.3"
1593+
},
1594+
"readable-stream": {
1595+
"version": "2.0.6"
1596+
},
1597+
"request": {
1598+
"version": "2.74.0"
1599+
},
1600+
"tough-cookie": {
1601+
"version": "2.3.2"
1602+
}
1603+
}
1604+
},
1605+
"cldrjs": {
1606+
"version": "0.5.0"
1607+
},
15551608
"cli-boxes": {
15561609
"version": "1.0.0"
15571610
},
@@ -1660,6 +1713,9 @@
16601713
}
16611714
}
16621715
},
1716+
"config-chain": {
1717+
"version": "1.1.11"
1718+
},
16631719
"configstore": {
16641720
"version": "2.1.0",
16651721
"dependencies": {
@@ -3717,13 +3773,10 @@
37173773
"version": "0.3.0"
37183774
},
37193775
"memoizeasync": {
3720-
"version": "0.8.0",
3776+
"version": "1.0.0",
37213777
"dependencies": {
37223778
"lru-cache": {
37233779
"version": "2.5.0"
3724-
},
3725-
"passerror": {
3726-
"version": "0.0.2"
37273780
}
37283781
}
37293782
},
@@ -3876,6 +3929,14 @@
38763929
"normalize-path": {
38773930
"version": "2.0.1"
38783931
},
3932+
"npmconf": {
3933+
"version": "2.0.9",
3934+
"dependencies": {
3935+
"semver": {
3936+
"version": "4.3.6"
3937+
}
3938+
}
3939+
},
38793940
"npmlog": {
38803941
"version": "4.0.2"
38813942
},
@@ -4014,7 +4075,7 @@
40144075
"version": "2.0.0"
40154076
},
40164077
"passerror": {
4017-
"version": "0.0.1"
4078+
"version": "1.1.1"
40184079
},
40194080
"path-browserify": {
40204081
"version": "0.0.0"
@@ -4081,6 +4142,9 @@
40814142
"process-nextick-args": {
40824143
"version": "1.0.6"
40834144
},
4145+
"progress": {
4146+
"version": "1.1.8"
4147+
},
40844148
"promise": {
40854149
"version": "7.1.1"
40864150
},
@@ -4095,6 +4159,9 @@
40954159
}
40964160
}
40974161
},
4162+
"proto-list": {
4163+
"version": "1.2.4"
4164+
},
40984165
"protobufjs": {
40994166
"version": "5.0.0",
41004167
"dependencies": {
@@ -4342,6 +4409,9 @@
43424409
"request-capture-har": {
43434410
"version": "1.1.4"
43444411
},
4412+
"request-progress": {
4413+
"version": "0.3.1"
4414+
},
43454415
"requires-port": {
43464416
"version": "1.0.0"
43474417
},
@@ -4760,6 +4830,9 @@
47604830
"text-extensions": {
47614831
"version": "1.3.3"
47624832
},
4833+
"throttleit": {
4834+
"version": "0.0.2"
4835+
},
47634836
"through": {
47644837
"version": "2.3.8"
47654838
},
@@ -4932,6 +5005,9 @@
49325005
"uglify-to-browserify": {
49335006
"version": "1.0.2"
49345007
},
5008+
"uid-number": {
5009+
"version": "0.0.5"
5010+
},
49355011
"uid-safe": {
49365012
"version": "2.0.0"
49375013
},
@@ -5271,13 +5347,13 @@
52715347
"version": "8.2.2"
52725348
},
52735349
"xmldom": {
5274-
"version": "0.1.19"
5350+
"version": "0.1.27"
52755351
},
52765352
"xmlhttprequest-ssl": {
52775353
"version": "1.5.1"
52785354
},
52795355
"xpath": {
5280-
"version": "0.0.7"
5356+
"version": "0.0.24"
52815357
},
52825358
"xtend": {
52835359
"version": "4.0.1"

0 commit comments

Comments
 (0)