diff --git a/gatsby-config.js b/gatsby-config.js
index b013620..352c8c2 100644
--- a/gatsby-config.js
+++ b/gatsby-config.js
@@ -79,5 +79,14 @@ module.exports = {
includeInDevelopment: false,
},
},
+ {
+ resolve: 'gatsby-plugin-intl',
+ options: {
+ path: `${__dirname}/src/intl`,
+ languages: ['en'],
+ defaultLanguage: 'en',
+ redirect: false,
+ },
+ },
],
};
diff --git a/package.json b/package.json
index fd5e3ab..65d9e4a 100644
--- a/package.json
+++ b/package.json
@@ -26,6 +26,7 @@
"@modus/react-idle": "^1.1.1",
"classnames": "2.2.6",
"gatsby": "2.32",
+ "gatsby-plugin-intl": "^0.3.3",
"lazysizes": "^5.3.2",
"lodash.get": "4.4.2",
"prop-types": "^15.7.2",
@@ -55,4 +56,4 @@
"node-sass": "^4.14.1",
"prettier": "1.19.1"
}
-}
\ No newline at end of file
+}
diff --git a/src/components/AnimatedWords/index.js b/src/components/AnimatedWords/index.js
index 346f0b7..6325adc 100644
--- a/src/components/AnimatedWords/index.js
+++ b/src/components/AnimatedWords/index.js
@@ -1,5 +1,6 @@
import React from 'react';
import PropTypes from 'prop-types';
+import { FormattedMessage } from 'gatsby-plugin-intl';
import s from './styles.module.scss';
const DELAY_TIME = 3;
@@ -24,7 +25,7 @@ const AnimatedWords = ({ words }) => (
{words.map((word, idx, arr) => (
- {word}
+
))}
diff --git a/src/components/ContactHero/index.js b/src/components/ContactHero/index.js
index 7ecf408..cbce9c6 100644
--- a/src/components/ContactHero/index.js
+++ b/src/components/ContactHero/index.js
@@ -1,23 +1,33 @@
import React from 'react';
+
+import PropTypes from 'prop-types';
+import { injectIntl, FormattedMessage } from 'gatsby-plugin-intl';
import PrimaryButton from '../PrimaryButton';
import s from './styles.module.scss';
-const ContactHero = () => (
+const ContactHero = ({ intl }) => (
- Ready to collaborate with Modus?
+
+
+
+
- Whether you have a new project, idea, or just want to see a sketch come to life we are here to
- help your dreams become reality. Multi-disciplinary teams are ready to assist you on any
- project type. Just hit us up!
+
-
-
+
+
);
-export default ContactHero;
+ContactHero.propTypes = {
+ intl: PropTypes.shape({
+ formatMessage: PropTypes.func,
+ }),
+};
+
+export default injectIntl(ContactHero);
diff --git a/src/components/Footer/index.js b/src/components/Footer/index.js
index 6c5235a..e50b1fc 100644
--- a/src/components/Footer/index.js
+++ b/src/components/Footer/index.js
@@ -1,7 +1,9 @@
import React from 'react';
import { Link } from 'gatsby';
+import { FormattedMessage } from 'gatsby-plugin-intl';
import ContactHero from '../ContactHero';
import Logo from '../Logo';
+
import s from './styles.module.scss';
const YEAR = new Date().getFullYear();
@@ -20,7 +22,7 @@ const Footer = () => (
Modus Create
- . All rights reserved.
+