andyearnshaw/Intl.js — pull request #26 by caridy (2013-12-03 15:46:41+00:00)
Title: adding all locale data by default

This PR solves part of the problem described in Issue #20.

The default way of loading the polyfill in a nodejs environment will be:

```
var Intl = require('Intl.js');
```

and as a result, you get a polyfill with all the available locales already added thru `Intl.__addLocaleData()`, and you should be ready to do. But this operation is a little expensive, specially if you only need one locale or a handful of locales (a la whitelisted), and for that, you might want to optimize your program to add the specific locales that you know you will need. Here is an example of how to do that:

```
var Intl = require('Intl.js/Intl.js');
Intl.__addLocaleData(require('Intl.js/locale-data/json/de-AT.json'));
```