@@ -74,30 +74,25 @@ are several reasons, including:
74
74
and would increase the code size of Intl.js too much.
75
75
- The Default Unicode Collation Element Table is huge, even after compression, and
76
76
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,
78
78
and we can't really expect client environments to download this data.
79
79
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
-
84
80
## Compatibility
85
81
Intl.js is designed to be compatible with ECMAScript 3.1 environments in order to
86
82
follow the specification as closely as possible. However, some consideration is given
87
83
to legacy (ES3) environments, and the goal of this project is to at least provide a
88
84
working, albeit non-compliant implementation where ES5 methods are unavailable.
89
85
90
86
## 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
-
94
87
` Intl.js ` uses the Unicode CLDR locale data, as recommended by the specification.
95
88
The data is available in JSON format, or JSONP format in the [ locale-data] ( https://github.com/andyearnshaw/Intl.js/tree/master/locale-data )
96
89
folder. This has been converted from CLDR version 23.1 using the script and config file
97
90
in the [ tools] ( https://github.com/andyearnshaw/Intl.js/tree/master/tools ) folder.
98
91
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.
101
96
102
97
Contents of the ` locale-data ` directory are a modified form of the Unicode CLDR
103
98
data found at http://www.unicode.org/cldr/data/ . See the ` LICENSE.txt ` file
0 commit comments