import Head from 'next/head' import Link from 'next/link' import styles from '../styles/Home.module.css' import { useRouter } from 'next/router' import { useTranslations } from 'next-intl' import { GetStaticPropsContext, InferGetStaticPropsType } from 'next' import Image from 'next/image' 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 router = useRouter() const t = useTranslations('common') return (
Vänner Bäst | Friends Best
Young Royals

{t('welcome')}

{t('desc')}

{t('watch.title')} →

{t('watch.desc')}

Discord →

{t('discord')}

Reddit →

{t('reddit')}

) }