From 01e43c3e5799b575a70798056945365ddf51f3ad Mon Sep 17 00:00:00 2001
From: Eugen Rochko <eugen@zeonfederated.com>
Date: Wed, 16 Nov 2016 17:20:52 +0100
Subject: Adding react-intl i18n to the frontend. No translations yet

---
 .../javascripts/components/features/home_timeline/index.jsx | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

(limited to 'app/assets/javascripts/components/features/home_timeline/index.jsx')

diff --git a/app/assets/javascripts/components/features/home_timeline/index.jsx b/app/assets/javascripts/components/features/home_timeline/index.jsx
index e4cd8bdca..117a4a72d 100644
--- a/app/assets/javascripts/components/features/home_timeline/index.jsx
+++ b/app/assets/javascripts/components/features/home_timeline/index.jsx
@@ -1,8 +1,9 @@
-import { connect }         from 'react-redux';
-import PureRenderMixin     from 'react-addons-pure-render-mixin';
+import { connect } from 'react-redux';
+import PureRenderMixin from 'react-addons-pure-render-mixin';
 import StatusListContainer from '../ui/containers/status_list_container';
-import Column              from '../ui/components/column';
+import Column from '../ui/components/column';
 import { refreshTimeline } from '../../actions/timelines';
+import { injectIntl } from 'react-intl';
 
 const HomeTimeline = React.createClass({
 
@@ -17,8 +18,10 @@ const HomeTimeline = React.createClass({
   },
 
   render () {
+    const { intl } = this.props;
+
     return (
-      <Column icon='home' heading='Home'>
+      <Column icon='home' heading={intl.formatMessage({ id: 'column.home', defaultMessage: 'Home' })}>
         <StatusListContainer {...this.props} type='home' />
       </Column>
     );
@@ -26,4 +29,4 @@ const HomeTimeline = React.createClass({
 
 });
 
-export default connect()(HomeTimeline);
+export default connect()(injectIntl(HomeTimeline));
-- 
cgit 

