From c1de837595eaa2bf23551ea4608f48bbd3a048e3 Mon Sep 17 00:00:00 2001 From: Matthew Taylor Date: Fri, 16 Oct 2015 11:04:01 -0400 Subject: [PATCH] Add formatted messages only to components and things that will be going out in the first deploy --- src/components/activity/activity.jsx | 15 +- src/components/footer/footer.jsx | 178 +++++++++++++++++++---- src/components/intro/intro.jsx | 47 +++++- src/components/login/login.jsx | 26 +++- src/components/navigation/navigation.jsx | 97 ++++++++++-- src/components/news/news.jsx | 20 ++- 6 files changed, 322 insertions(+), 61 deletions(-) diff --git a/src/components/activity/activity.jsx b/src/components/activity/activity.jsx index 4e55441a9..c3732b1ce 100644 --- a/src/components/activity/activity.jsx +++ b/src/components/activity/activity.jsx @@ -1,10 +1,20 @@ var React = require('react'); +var ReactIntl = require('react-intl'); +var defineMessages = ReactIntl.defineMessages; +var injectIntl = ReactIntl.injectIntl; var Box = require('../box/box.jsx'); var Format = require('../../lib/format.js'); require('./activity.scss'); +var defaultMessages = defineMessages({ + whatsHappening: { + id: 'general.whatsHappening', + defaultMessage: 'What\s Happening?' + } +}); + var Activity = React.createClass({ type: 'Activity', propTypes: { @@ -16,10 +26,11 @@ var Activity = React.createClass({ }; }, render: function () { + var formatMessage = this.props.intl; return ( + title={formatMessage(defaultMessages.whatsHappening)}>