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
|
@ -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)),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue