diff --git a/packages/portal/pages/index.tsx b/packages/portal/pages/index.tsx
index ad6a3f38..9c6fde8d 100644
--- a/packages/portal/pages/index.tsx
+++ b/packages/portal/pages/index.tsx
@@ -5,36 +5,48 @@ import Nav from '../components/home/Nav';
import Recent from '../components/home/Recent';
import Form from '../components/search/Form';
import { SEARCH_QUERY } from '../graphql/queries';
+import { loadNamespaces } from './_app';
+import useTranslation from 'next-translate/useTranslation';
-const Home: React.FC = () => (
-
-
-
Portal
-
-
-
-
-
-
- Find, Share and Publish
Quality Data with{' '}
- Datahub
-
-
- At Datahub, we have over thousands of datasets for free and a Premium
- Data Service for additional or customised data with guaranteed
- updates.
-
-
-
-
-

-
-
-
-
-);
+const Home: React.FC<{ locale: any; locales: any }> = ({
+ locale,
+ locales,
+}) => {
+ const { t } = useTranslation();
-export const getServerSideProps: GetServerSideProps = async () => {
+ return (
+ <>
+
+
+
{t`common:title`}
+
+
+
+
+
+
+ Find, Share and Publish
Quality Data with{' '}
+ Datahub
+
+
+ {t`common:description`}
+
+
+
+
+

+
+
+
+
+ >
+ );
+};
+
+export const getServerSideProps: GetServerSideProps = async ({
+ locale,
+ locales,
+}) => {
const apolloClient = initializeApollo();
await apolloClient.query({
@@ -48,6 +60,9 @@ export const getServerSideProps: GetServerSideProps = async () => {
return {
props: {
initialApolloState: apolloClient.cache.extract(),
+ _ns: await loadNamespaces(['common'], locale),
+ locale,
+ locales,
},
};
};