summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-core/src/components/IntlProvider.js
blob: 0377b4d51a05fc6e18db3aa25448273d3a0ef65f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
const React = require('react');
const intl = require('react-intl');
const ReactRedux = require('react-redux');

const IntlProvider = React.createClass({
    propTypes: {
        children: React.PropTypes.node
    },

    render() {
        // TODO
        const messages = {};

        return (
            <intl.IntlProvider locale={'en'} messages={messages}>
                {this.props.children}
            </intl.IntlProvider>
        );
    }
});

module.exports = ReactRedux.connect()(IntlProvider);