Confirmed users
446
edits
(Move concepts earlier) |
(even earlier) |
||
| Line 6: | Line 6: | ||
The Internationalization API introduces one new global property: <code>Intl</code>. This property is an object with various properties corresponding to various sub-APIs: collation (sorting), number formatting, and date/time formatting. (More capabilities will be added in future Internationalization API updates.) The localization APIs from ES5 have been reformulated to use the localization capabilities provided by the Internationalization API. Generally, however, it's preferable to use the Internationalization API directly, as this is more efficient by permitting caching of the structures needed to perform each operation. | The Internationalization API introduces one new global property: <code>Intl</code>. This property is an object with various properties corresponding to various sub-APIs: collation (sorting), number formatting, and date/time formatting. (More capabilities will be added in future Internationalization API updates.) The localization APIs from ES5 have been reformulated to use the localization capabilities provided by the Internationalization API. Generally, however, it's preferable to use the Internationalization API directly, as this is more efficient by permitting caching of the structures needed to perform each operation. | ||
== Key concepts == | |||
...talk about language tags and their structure and what's encoded in them, collators, date formats, and how all the stuff is implemented using what ICU primitives...copiously link to BCP47... | |||
== Internationalization in SpiderMonkey == | == Internationalization in SpiderMonkey == | ||
| Line 12: | Line 16: | ||
The Internationalization API is enabled by default in SpiderMonkey when embedded in Firefox builds. | The Internationalization API is enabled by default in SpiderMonkey when embedded in Firefox builds. | ||
=== Code organization === | === Code organization === | ||