From ec8e08d442ac339823e1e90854969fae7253efae Mon Sep 17 00:00:00 2001 From: Jeroen Reumkens Date: Tue, 11 Apr 2023 18:09:02 +0200 Subject: [PATCH] Added serverside translations to teams page. (#7999) Co-authored-by: Alex van Andel --- apps/web/pages/teams/index.tsx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/apps/web/pages/teams/index.tsx b/apps/web/pages/teams/index.tsx index 64555d3f33..3c5697d296 100644 --- a/apps/web/pages/teams/index.tsx +++ b/apps/web/pages/teams/index.tsx @@ -1,3 +1,5 @@ +import { serverSideTranslations } from "next-i18next/serverSideTranslations"; + import { TeamsListing } from "@calcom/features/ee/teams/components"; import Shell from "@calcom/features/shell/Shell"; import { WEBAPP_URL } from "@calcom/lib/constants"; @@ -25,6 +27,14 @@ function Teams() { ); } +export const getStaticProps = async () => { + return { + props: { + ...(await serverSideTranslations("en", ["common"])), + }, + }; +}; + Teams.requiresLicense = false; export default Teams;