Browse Source

Merge pull request #18884 from ant-design/restore-site-intl

restore: react-intl intl polyfill
pull/18887/head
信鑫-King 5 years ago
committed by GitHub
parent
commit
6803b89506
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      package.json
  2. 4
      site/theme/template/Layout/index.jsx

1
package.json

@ -143,7 +143,6 @@
"devDependencies": {
"@ant-design/colors": "^3.1.0",
"@ant-design/tools": "^8.0.4",
"@formatjs/intl-relativetimeformat": "^4.0.1",
"@packtracker/webpack-plugin": "^2.0.1",
"@sentry/browser": "^5.4.0",
"@types/classnames": "^2.2.8",

4
site/theme/template/Layout/index.jsx

@ -2,10 +2,6 @@ import React from 'react';
import ReactDOM from 'react-dom';
import PropTypes from 'prop-types';
import { enquireScreen } from 'enquire-js';
// https://github.com/formatjs/react-intl/issues/1487
import '@formatjs/intl-relativetimeformat/polyfill';
import '@formatjs/intl-relativetimeformat/dist/locale-data/zh';
import '@formatjs/intl-relativetimeformat/dist/locale-data/en';
import { IntlProvider } from 'react-intl';
import { Helmet } from 'react-helmet';
import 'moment/locale/zh-cn';

Loading…
Cancel
Save