diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-16 17:20:52 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-16 17:20:52 +0100 |
commit | 01e43c3e5799b575a70798056945365ddf51f3ad (patch) | |
tree | 75801dd3733930cc05cd3c26795cef382a4c1e5d /app/assets/javascripts/components/features/public_timeline/index.jsx | |
parent | 546c4718e781f8900ba6498307ccb1e659de5edd (diff) |
Adding react-intl i18n to the frontend. No translations yet
Diffstat (limited to 'app/assets/javascripts/components/features/public_timeline/index.jsx')
-rw-r--r-- | app/assets/javascripts/components/features/public_timeline/index.jsx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/assets/javascripts/components/features/public_timeline/index.jsx b/app/assets/javascripts/components/features/public_timeline/index.jsx index 12f73ba9b..445a4fc63 100644 --- a/app/assets/javascripts/components/features/public_timeline/index.jsx +++ b/app/assets/javascripts/components/features/public_timeline/index.jsx @@ -7,6 +7,7 @@ import { updateTimeline, deleteFromTimelines } from '../../actions/timelines'; +import { injectIntl } from 'react-intl'; const PublicTimeline = React.createClass({ @@ -44,8 +45,10 @@ const PublicTimeline = React.createClass({ }, render () { + const { intl } = this.props; + return ( - <Column icon='globe' heading='Public'> + <Column icon='globe' heading={intl.formatMessage({ id: 'column.public', defaultMessage: 'Public' })}> <StatusListContainer type='public' /> </Column> ); @@ -53,4 +56,4 @@ const PublicTimeline = React.createClass({ }); -export default connect()(PublicTimeline); +export default connect()(injectIntl(PublicTimeline)); |