chore(dev): Force i18n to English for Netlify delpoy
This commit is contained in:
parent
db5c2dca9e
commit
b040a3a3cc
6 changed files with 9 additions and 8 deletions
|
@ -1,7 +1,7 @@
|
||||||
import configBuilder from '../freesewing.shared/config/next.mjs'
|
import configBuilder from '../freesewing.shared/config/next.mjs'
|
||||||
import i18nConfig from './next-i18next.config.js'
|
//import i18nConfig from './next-i18next.config.js'
|
||||||
|
|
||||||
const config = configBuilder('dev')
|
const config = configBuilder('dev')
|
||||||
config.i18n = i18nConfig.i18n
|
//config.i18n = i18nConfig.i18n
|
||||||
|
|
||||||
export default config
|
export default config
|
||||||
|
|
|
@ -74,7 +74,7 @@ export async function getStaticProps({ params, locale }) {
|
||||||
...mdxMeta[params.mdxslug.join('/')],
|
...mdxMeta[params.mdxslug.join('/')],
|
||||||
},
|
},
|
||||||
params,
|
params,
|
||||||
...(await serverSideTranslations(locale)),
|
...(await serverSideTranslations('en')),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import 'shared/styles/globals.css'
|
import 'shared/styles/globals.css'
|
||||||
import { appWithTranslation } from 'next-i18next'
|
//import { appWithTranslation } from 'next-i18next'
|
||||||
|
|
||||||
const FreeSewingDev = ({ Component, pageProps }) => <Component {...pageProps} />
|
const FreeSewingDev = ({ Component, pageProps }) => <Component {...pageProps} />
|
||||||
|
|
||||||
export default appWithTranslation(FreeSewingDev)
|
//export default appWithTranslation(FreeSewingDev)
|
||||||
|
export default FreeSewingDev
|
||||||
|
|
|
@ -110,7 +110,7 @@ export const getStaticProps = async (props) => {
|
||||||
post,
|
post,
|
||||||
author,
|
author,
|
||||||
slug: `blog/${props.params.slug}`,
|
slug: `blog/${props.params.slug}`,
|
||||||
...(await serverSideTranslations(props.locale)),
|
...(await serverSideTranslations('en')),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -81,7 +81,7 @@ export default BlogIndexPage
|
||||||
export async function getStaticProps({ locale }) {
|
export async function getStaticProps({ locale }) {
|
||||||
return {
|
return {
|
||||||
props: {
|
props: {
|
||||||
...(await serverSideTranslations(locale)),
|
...(await serverSideTranslations('en')),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -127,7 +127,7 @@ export default HomePage
|
||||||
export async function getStaticProps({ locale }) {
|
export async function getStaticProps({ locale }) {
|
||||||
return {
|
return {
|
||||||
props: {
|
props: {
|
||||||
...(await serverSideTranslations(locale)),
|
...(await serverSideTranslations('en')),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue