From 962eb994cc044f67d6aa7d5f058a8c4d6fc91f69 Mon Sep 17 00:00:00 2001 From: saml33 Date: Thu, 19 May 2022 12:42:54 +1000 Subject: [PATCH] load profile.json on leaderboard page --- pages/leaderboard.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/leaderboard.tsx b/pages/leaderboard.tsx index abb5632d..f1b6cf7a 100644 --- a/pages/leaderboard.tsx +++ b/pages/leaderboard.tsx @@ -9,7 +9,7 @@ import { useTranslation } from 'next-i18next' export async function getStaticProps({ locale }) { return { props: { - ...(await serverSideTranslations(locale, ['common'])), + ...(await serverSideTranslations(locale, ['common', 'profile'])), // Will be passed to the page component as props }, }