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

@ -6,6 +6,7 @@ import orderBy from 'lodash.orderby'
import TimeAgo from 'react-timeago'
import Head from 'next/head'
import HelpUs from 'site/components/help-us.js'
import { serverSideTranslations } from 'next-i18next/serverSideTranslations'
const strapi = "https://posts.freesewing.org"
@ -76,3 +77,12 @@ const BlogIndexPage = (props) => {
}
export default BlogIndexPage
export async function getStaticProps({ locale }) {
return {
props: {
...(await serverSideTranslations(locale)),
}
}
}