From a6e4f754fc4dd025be55c6d6362e8c5e98a299d9 Mon Sep 17 00:00:00 2001
From: Eugen Rochko <eugen@zeonfederated.com>
Date: Thu, 17 Nov 2016 16:34:36 +0100
Subject: Add an Intl polyfill

---
 app/assets/javascripts/components/containers/mastodon.jsx | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'app/assets/javascripts/components/containers/mastodon.jsx')

diff --git a/app/assets/javascripts/components/containers/mastodon.jsx b/app/assets/javascripts/components/containers/mastodon.jsx
index dbc32076b..a12b19746 100644
--- a/app/assets/javascripts/components/containers/mastodon.jsx
+++ b/app/assets/javascripts/components/containers/mastodon.jsx
@@ -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: {
-- 
cgit 

