Added i18n configs

This commit is contained in:
Luis Alvarez
2020-10-24 16:10:31 -05:00
parent dae1477063
commit f3f0ba0935
3 changed files with 12 additions and 4 deletions

View File

@@ -8,7 +8,12 @@ import { Layout } from '@components/core'
import { Grid, Marquee, Hero } from '@components/ui'
import { ProductCard } from '@components/product'
export async function getStaticProps({ preview }: GetStaticPropsContext) {
export async function getStaticProps({
preview,
locale,
}: GetStaticPropsContext) {
console.log('LOCALE', locale)
const { products: featuredProducts } = await getAllProducts({
variables: { field: 'featuredProducts', first: 6 },
})