import Head from 'next/head' import Link from 'next/link' import { useTranslations } from 'next-intl' import { GetStaticPropsContext, InferGetStaticPropsType } from 'next' import Image from 'next/image' import LinkCard from '../components/linkcard' 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 (
Vänner Bäst | Friends Best
Young Royals

{t('welcome')}

{t('desc')}

) }