Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
The polyfill service now recommends using v2 when you attempt to use v1.
  • Loading branch information
MattNguyen committed Nov 25, 2015
1 parent 45a24fd commit 501b2c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ Intl.js polyfill was recently added to the [Polyfill service][], which is develo
To use the Intl polyfill through the [Polyfill service][] just add one script tag in your page before you load or parse your own JavaScript:

```
<script src="https://cdn.polyfill.io/v1/polyfill.min.js?features=Intl.~locale.en"></script>
<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=Intl.~locale.en"></script>
```

When specifying the `features` to use through the polyfill service, you have to specify what locale, or locales to load along with the Intl polyfill for the page to function, in the example above we are specifying `Intl.~locale.en`, which means only `en`, but you could do something like this:

```
<script src="https://cdn.polyfill.io/v1/polyfill.min.js?features=Intl.~locale.fr,Intl.~locale.pt"></script>
<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=Intl.~locale.fr,Intl.~locale.pt"></script>
```

_note: the example above will load the polyfill with two locale data set, `fr` and `pt`._
Expand Down

0 comments on commit 501b2c8

Please sign in to comment.