diff --git a/src/components/intro/intro.jsx b/src/components/intro/intro.jsx index c8930a52f..101501627 100644 --- a/src/components/intro/intro.jsx +++ b/src/components/intro/intro.jsx @@ -1,8 +1,5 @@ var omit = require('lodash.omit'); var React = require('react'); -var ReactIntl = require('react-intl'); -var FormattedMessage = ReactIntl.FormattedMessage; -var FormattedHTMLMessage = ReactIntl.FormattedHTMLMessage; var Modal = require('../modal/modal.jsx'); var Registration = require('../registration/registration.jsx'); @@ -18,7 +15,16 @@ var Intro = React.createClass({ }, getDefaultProps: function () { return { - projectCount: 10569070 + projectCount: 10569070, + messages: { + 'intro.aboutScratch': 'ABOUT SCRATCH', + 'intro.forEducators': 'FOR EDUCATORS', + 'intro.forParents': 'FOR PARENTS', + 'intro.joinScratch': 'JOIN SCRATCH', + 'intro.seeExamples': 'SEE EXAMPLES', + 'intro.tagLine': 'Create stories, games, and animations
Share with others around the world', + 'intro.tryItOut': 'TRY IT OUT' + } }; }, getInitialState: function () { @@ -52,13 +58,7 @@ var Intro = React.createClass({ return (
-

- ' + - 'Share with others around the world' - } /> +

@@ -70,9 +70,7 @@ var Intro = React.createClass({ src="//cdn.scratch.mit.edu/scratchr2/static/images/cat-b.png" />
- + {this.props.messages['intro.tryItOut']}
@@ -84,9 +82,7 @@ var Intro = React.createClass({ src="//cdn.scratch.mit.edu/scratchr2/static/images/tera-b.png" />
- + {this.props.messages['intro.seeExamples']}
@@ -98,9 +94,7 @@ var Intro = React.createClass({ src="//cdn.scratch.mit.edu/scratchr2/static/images/gobo-b.png" />
- + {this.props.messages['intro.joinScratch']}
( it’s free )
@@ -116,19 +110,13 @@ var Intro = React.createClass({
- + {this.props.messages['intro.aboutScratch']} - + {this.props.messages['intro.forEducators']} - + {this.props.messages['intro.forParents']}

diff --git a/src/components/news/news.jsx b/src/components/news/news.jsx index e5dc54643..63ef7aa71 100644 --- a/src/components/news/news.jsx +++ b/src/components/news/news.jsx @@ -1,23 +1,9 @@ var React = require('react'); -var ReactIntl = require('react-intl'); -var defineMessages = ReactIntl.defineMessages; -var injectIntl = ReactIntl.injectIntl; var Box = require('../box/box.jsx'); require('./news.scss'); -var defaultMessages = defineMessages({ - scratchNews: { - id: 'news.scratchNews', - defaultMessage: 'Scratch News' - }, - viewAll: { - id: 'general.viewAll', - defaultMessage: 'View All' - } -}); - var News = React.createClass({ type: 'News', propTypes: { @@ -25,16 +11,19 @@ var News = React.createClass({ }, getDefaultProps: function () { return { - items: require('./news.json') + items: require('./news.json'), + messages: { + 'general.viewAll': 'View All', + 'news.scratchNews': 'Scratch News' + } }; }, render: function () { - var formatMessage = this.props.intl.formatMessage; return (