import Head from 'next/head' import { useTranslations } from 'next-intl' import { GetStaticPropsContext, InferGetStaticPropsType } from 'next' import Image from 'next/image' import {LinkCard, Title} from '../components' export function getStaticProps({locale}: GetStaticPropsContext) { return { props: { // You can get the messages from anywhere you like, but the recommended // pattern is to put them in JSON files separated by language and read // the desired one based on the `locale` received from Next.js. messages: require(`../locales/${locale}.json`), } }; } export default function Home() { const t = useTranslations('common') return (
{t('welcome')}

{t('desc')}

) }