feat(dev): Added next-i18next to dev site
This commit is contained in:
parent
48c58c73b8
commit
89a489bb9f
10 changed files with 68 additions and 114 deletions
|
@ -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)),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue