Skip to content

Commit

Permalink
fix(website): Fix Intl.DateTimeFormat link
Browse files Browse the repository at this point in the history
  • Loading branch information
Long Ho committed Jun 25, 2020
1 parent 42f4699 commit 03fbcca
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion website/docs/intl-messageformat.md
Expand Up @@ -88,7 +88,7 @@ The message syntax that this package uses is not proprietary, in fact it's a com
This package assumes that the [`Intl`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl) global object exists in the runtime. `Intl` is present in all modern browsers (IE11+) and Node (with full ICU). The `Intl` methods we rely on are:

1. `Intl.NumberFormat` for number formatting (can be polyfilled using [@formatjs/intl-numberformat](./polyfills/intl-numberformat.md))
2. `Intl.DateTimeFormat` for date time formatting (can be polyfilled using [Intl.js](https://github.com/andyearnshaw/Intl.js/))
2. `Intl.DateTimeFormat` for date time formatting (can be polyfilled using [@formatjs/intl-datetimeformat](./polyfills/intl-datetimeformat.md))
3. `Intl.PluralRules` for plural/ordinal formatting (can be polyfilled using [@formatjs/intl-pluralrules](./polyfills/intl-pluralrules.md))

### Loading Intl MessageFormat in a browser
Expand Down
2 changes: 1 addition & 1 deletion website/docs/react-intl.md
Expand Up @@ -26,7 +26,7 @@ React Intl relies on these `Intl` APIs:
If you need to support older browsers, we recommend you do the following:

1. Polyfill `Intl.NumberFormat` with [`@formatjs/intl-numberformat`](polyfills/intl-numberformat.md).
2. Polyfill `Intl.DateTimeFormat` with https://github.com/formatjs/date-time-format-timezone
2. Polyfill `Intl.DateTimeFormat` with [`@formatjs/intl-datetimeformat`](polyfills/intl-datetimeformat.md)
3. If you're supporting browsers that do not have [`Intl.PluralRules`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/PluralRules) (e.g IE11 & Safari 12-), include this [polyfill](polyfills/intl-pluralrules.md) in your build.

```tsx
Expand Down
4 changes: 2 additions & 2 deletions website/docs/runtime-requirements.md
Expand Up @@ -19,8 +19,8 @@ React Intl relies on these `Intl` APIs:

If you need to support older browsers, we recommend you do the following:

1. Polyfill `Intl.NumberFormat` with https://github.com/andyearnshaw/Intl.js
2. Polyfill `Intl.DateTimeFormat` with https://github.com/formatjs/date-time-format-timezone
1. Polyfill `Intl.NumberFormat` with [@formatjs/intl-numberformat](polyfills/intl-numberformat.md)
2. Polyfill `Intl.DateTimeFormat` with [@formatjs/intl-datetimeformat](polyfills/intl-datetimeformat.md)
3. If you're supporting browsers that do not have [Intl.PluralRules](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/PluralRules) (e.g IE11 & Safari 12-), include this [polyfill](polyfills/intl-pluralrules.md) in your build.

```tsx
Expand Down

0 comments on commit 03fbcca

Please sign in to comment.