diff --git a/client/gatsby-ssr.js b/client/gatsby-ssr.js index 4c7cb030475..91a115123cc 100644 --- a/client/gatsby-ssr.js +++ b/client/gatsby-ssr.js @@ -1,7 +1,9 @@ import React from 'react'; import PropTypes from 'prop-types'; import { Provider } from 'react-redux'; +import { I18nextProvider } from 'react-i18next'; +import i18n from './i18n/config'; import headComponents from './src/head'; import { createStore } from './src/redux/createStore'; @@ -10,7 +12,11 @@ import layoutSelector from './utils/gatsby/layoutSelector'; const store = createStore(); export const wrapRootElement = ({ element }) => { - return {element}; + return ( + + {element} + + ); }; wrapRootElement.propTypes = {