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

Commit e5c8b48

Browse files
committed
README.md rewording for "Locale Data" & Intl.Collator sections
1 parent 5c1a6d8 commit e5c8b48

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

README.md

+5-10
Original file line numberDiff line numberDiff line change
@@ -74,30 +74,25 @@ are several reasons, including:
7474
and would increase the code size of Intl.js too much.
7575
- The Default Unicode Collation Element Table is huge, even after compression, and
7676
converting to a native JavaScript object would probably make it slightly larger.
77-
Server-side JavaScript environments will soon already support Intl.Collator,
77+
Server-side JavaScript environments will (hopefully) soon support Intl.Collator,
7878
and we can't really expect client environments to download this data.
7979

80-
There are some local environments where it might be useful, such as a Smart TV platform,
81-
desktop widget or something, but `String.prototype.localeCompare` is probably good enough
82-
in those platforms and the gain from an implementation just wouldn't be worth it.
83-
8480
## Compatibility
8581
Intl.js is designed to be compatible with ECMAScript 3.1 environments in order to
8682
follow the specification as closely as possible. However, some consideration is given
8783
to legacy (ES3) environments, and the goal of this project is to at least provide a
8884
working, albeit non-compliant implementation where ES5 methods are unavailable.
8985

9086
## Locale Data
91-
The main `Intl.js` file contains no locale data itself. Instead, the data should be
92-
provided, parsed into a JavaScript object, using the `Intl.__addLocaleData()` method.
93-
9487
`Intl.js` uses the Unicode CLDR locale data, as recommended by the specification.
9588
The data is available in JSON format, or JSONP format in the [locale-data](https://github.com/andyearnshaw/Intl.js/tree/master/locale-data)
9689
folder. This has been converted from CLDR version 23.1 using the script and config file
9790
in the [tools](https://github.com/andyearnshaw/Intl.js/tree/master/tools) folder.
9891

99-
Collation data isn't currently present since the `Intl.Collator` implementation isn't
100-
finished.
92+
The main `Intl.js` file contains no locale data itself. In browser environments, the
93+
data should be provided, parsed into a JavaScript object, using the
94+
`Intl.__addLocaleData()` method. In Node.js, or when using `Intl.complete.js`, the data
95+
is pre-compiled into the end of the file and does not need to be provided.
10196

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

0 commit comments

Comments
 (0)