diff --git a/src/app.js b/src/app.js
index ff1438c1..601910d9 100644
--- a/src/app.js
+++ b/src/app.js
@@ -3,20 +3,26 @@ import ReactDOMServer from 'react-dom/server';
import Helmet from 'react-helmet';
import { BrowserRouter, ServerRouter } from 'react-router';
import { Provider } from 'react-redux';
+import { IntlProvider, addLocaleData } from 'react-intl';
+import en from 'react-intl/locale-data/en';
import configureStore from './store';
import Routes from './Routes';
import routesConfiguration from './routesConfiguration';
+import localeData from './translations/en.json';
export const ClientApp = props => {
const { store } = props;
+ addLocaleData([ ...en ]);
return (
-
- {({ router }) => (
-
-
-
- )}
-
+
+
+ {({ router }) => (
+
+
+
+ )}
+
+
);
};
@@ -26,14 +32,17 @@ ClientApp.propTypes = { store: any.isRequired };
export const ServerApp = props => {
const { url, context, store } = props;
+ addLocaleData([ ...en ]);
return (
-
- {({ router }) => (
-
-
-
- )}
-
+
+
+ {({ router }) => (
+
+
+
+ )}
+
+
);
};
diff --git a/src/containers/LandingPage/LandingPage.js b/src/containers/LandingPage/LandingPage.js
index 3d583503..1ea32d03 100644
--- a/src/containers/LandingPage/LandingPage.js
+++ b/src/containers/LandingPage/LandingPage.js
@@ -1,9 +1,15 @@
import React from 'react';
+import { FormattedMessage } from 'react-intl';
import { Link } from 'react-router';
import { PageLayout } from '../../components';
export default () => (
- Find studios
+
+
+
)
diff --git a/src/translations/en.json b/src/translations/en.json
new file mode 100644
index 00000000..e8eb922f
--- /dev/null
+++ b/src/translations/en.json
@@ -0,0 +1,3 @@
+{
+ "landingpage.examplelink": "Show nice studios! (from json)"
+}