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

Commit daa7244

Browse files
committed
updating docs and contribution steps
1 parent 19abc5c commit daa7244

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

CONTRIBUTING.md

+8-3
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,19 @@ To run the unit tests:
1212

1313
npm test
1414

15-
To build files:
15+
To build files in `dist/` and `lib/`:
1616

17-
npm run build
17+
grunt
18+
19+
To build files in `locale-data/` based on CLDR:
20+
21+
grunt cldr
1822

1923
Release checklist
2024
-----------------
2125

22-
* build all files using `npm run build`
26+
* build all files using `grunt`
27+
* run all tests using `npm test`
2328
* verify that [README.md] is updated
2429
* bump the version in [package.json]
2530
* commit to master

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Current progress is as follows:
6464
- Properties of the `Intl.NumberFormat` Constructor ([11.2](http://www.ecma-international.org/ecma-402/1.0/#sec-11.2))
6565
- Properties of the `Intl.NumberFormat` Prototype Object ([11.3](http://www.ecma-international.org/ecma-402/1.0/#sec-11.3))
6666
- Properties of Intl.NumberFormat Instances([11.4](http://www.ecma-international.org/ecma-402/1.0/#sec-11.4))
67-
- __`Intl.DateTimeFormat`__
67+
- __`Intl.DateTimeFormat`__
6868
- The `Intl.DateTimeFormat` constructor ([12.1](http://www.ecma-international.org/ecma-402/1.0/#sec-12.1))
6969
- Properties of the `Intl.DateTimeFormat` Constructor ([12.2](http://www.ecma-international.org/ecma-402/1.0/#sec-12.2))
7070
- Properties of the `Intl.DateTimeFormat` Prototype Object ([12.3](http://www.ecma-international.org/ecma-402/1.0/#sec-12.3))
@@ -100,7 +100,7 @@ are several reasons, including:
100100
- The CLDR convertor does not automatically convert collation data to JSON
101101
- The Unicode Collation Algorithm is more complicated that originally anticipated,
102102
and would increase the code size of Intl.js too much.
103-
- The Default Unicode Collation Element Table is huge, even after compression, and
103+
- The Default Unicode Collation Element Table is huge, even after compression, and
104104
converting to a native JavaScript object would probably make it slightly larger.
105105
Server-side JavaScript environments will (hopefully) soon support Intl.Collator,
106106
and we can't really expect client environments to download this data.
@@ -124,8 +124,8 @@ in the [tools](https://github.com/andyearnshaw/Intl.js/tree/master/tools) folder
124124

125125
The main `Intl.js` file contains no locale data itself. In browser environments, the
126126
data should be provided, parsed into a JavaScript object, using the
127-
`Intl.__addLocaleData()` method. In Node.js, or when using `Intl.complete.js`, the data
128-
is pre-compiled into the end of the file and does not need to be provided.
127+
`Intl.__addLocaleData()` method. In Node.js, or when using `require('intl')`, the data
128+
is automatically added to the runtime and does not need to be provided.
129129

130130
Contents of the `locale-data` directory are a modified form of the Unicode CLDR
131131
data found at http://www.unicode.org/cldr/data/. See the `LICENSE.txt` file

0 commit comments

Comments
 (0)