fix: site ssr react-intl

This commit is contained in:
ycjcl868 2019-09-18 19:07:17 +08:00
parent 1f7d5066c2
commit 9515cef21d

View File

@ -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';