Add an Intl polyfill
This commit is contained in:
parent
7ac574d9a9
commit
a6e4f754fc
7 changed files with 19 additions and 29 deletions
|
@ -32,7 +32,8 @@ import Following from '../features/following';
|
|||
import Reblogs from '../features/reblogs';
|
||||
import Favourites from '../features/favourites';
|
||||
import HashtagTimeline from '../features/hashtag_timeline';
|
||||
import { IntlProvider } from 'react-intl';
|
||||
import { IntlProvider, addLocaleData } from 'react-intl';
|
||||
import en from 'react-intl/locale-data/en';
|
||||
|
||||
const store = configureStore();
|
||||
|
||||
|
@ -40,6 +41,8 @@ const browserHistory = useRouterHistory(createBrowserHistory)({
|
|||
basename: '/web'
|
||||
});
|
||||
|
||||
addLocaleData([...en]);
|
||||
|
||||
const Mastodon = React.createClass({
|
||||
|
||||
propTypes: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue