1
0
Fork 0

feat(dev): Added next-i18next to dev site

This commit is contained in:
Joost De Cock 2022-02-13 16:00:00 +01:00
parent 48c58c73b8
commit 89a489bb9f
10 changed files with 68 additions and 114 deletions

View file

@ -4,6 +4,7 @@ import Head from 'next/head'
import HelpUs from 'site/components/help-us.js'
import Link from 'next/link'
import Script from 'next/script'
import { serverSideTranslations } from 'next-i18next/serverSideTranslations'
const HomePage = (props) => {
const app = useApp()
@ -122,3 +123,12 @@ const HomePage = (props) => {
}
export default HomePage
export async function getStaticProps({ locale }) {
return {
props: {
...(await serverSideTranslations(locale)),
}
}
}