diff --git a/src/views/faq/faq.jsx b/src/views/faq/faq.jsx index 2ee3c7a0e..70dc94088 100644 --- a/src/views/faq/faq.jsx +++ b/src/views/faq/faq.jsx @@ -1,4 +1,5 @@ var React = require('react'); +var injectIntl = require('react-intl').injectIntl; var FormattedHTMLMessage = require('react-intl').FormattedHTMLMessage; var FormattedMessage = require('react-intl').FormattedMessage; var render = require('../../lib/render.jsx'); @@ -6,11 +7,12 @@ var render = require('../../lib/render.jsx'); var Page = require('../../components/page/www/page.jsx'); var InformationPage = require('../../components/informationpage/informationpage.jsx'); -var Faq = React.createClass({ +var Faq = injectIntl(React.createClass({ type: 'Faq', render: function () { + var formatMessage = this.props.intl.formatMessage; return ( - +
@@ -214,6 +216,6 @@ var Faq = React.createClass({ ); } -}); +})); render(, document.getElementById('app')); diff --git a/src/views/faq/l10n.json b/src/views/faq/l10n.json index bb11976ae..9f615d28b 100644 --- a/src/views/faq/l10n.json +++ b/src/views/faq/l10n.json @@ -1,4 +1,5 @@ { + "faq.title":"Frequently Asked Questions (FAQ)", "faq.intro":"On this page, you’ll find answers to frequently asked questions about Scratch.", "faq.aboutTitle":"General Questions", "faq.privacyTitle":"Privacy Policy",