mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-29 13:47:02 +08:00
fix: site ssr react-intl
This commit is contained in:
parent
1f7d5066c2
commit
9515cef21d
@ -2,6 +2,9 @@ import React from 'react';
|
|||||||
import ReactDOM from 'react-dom';
|
import ReactDOM from 'react-dom';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { enquireScreen } from 'enquire-js';
|
import { enquireScreen } from 'enquire-js';
|
||||||
|
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 { IntlProvider } from 'react-intl';
|
||||||
import { Helmet } from 'react-helmet';
|
import { Helmet } from 'react-helmet';
|
||||||
import 'moment/locale/zh-cn';
|
import 'moment/locale/zh-cn';
|
||||||
|
Loading…
Reference in New Issue
Block a user