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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
0 additions and
5 deletions
-
package.json
-
site/theme/template/Layout/index.jsx
|
|
@ -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", |
|
|
|
|
|
@ -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'; |
|
|
|