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

Commit 501b2c8

Browse files
committed
Update README.md
The polyfill service now recommends using v2 when you attempt to use v1.
1 parent 45a24fd commit 501b2c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ Intl.js polyfill was recently added to the [Polyfill service][], which is develo
1919
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:
2020

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

2525
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:
2626

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

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

0 commit comments

Comments
 (0)