From 70fc0847c3f2989799798c3d551d139042fcdfc8 Mon Sep 17 00:00:00 2001 From: Johnny D Date: Mon, 11 Sep 2023 17:13:57 +1000 Subject: [PATCH] Cleanup project page i18n --- src/pages/v2/p/[projectId]/index.tsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/pages/v2/p/[projectId]/index.tsx b/src/pages/v2/p/[projectId]/index.tsx index 2bf6544411..f3f318ff9e 100644 --- a/src/pages/v2/p/[projectId]/index.tsx +++ b/src/pages/v2/p/[projectId]/index.tsx @@ -4,7 +4,6 @@ import { V2V3Dashboard } from 'components/v2v3/V2V3Project/V2V3Dashboard' import { FEATURE_FLAGS } from 'constants/featureFlags' import { PV_V2 } from 'constants/pv' import { AnnouncementsProvider } from 'contexts/Announcements/AnnouncementsProvider' -import { defaultI18n } from 'contexts/Language/LanguageProvider' import { V2V3ProjectPageProvider } from 'contexts/v2v3/V2V3ProjectPageProvider' import { paginateDepleteProjectsQueryCall } from 'lib/apollo/paginateDepleteProjectsQuery' import { loadCatalog } from 'locales/utils' @@ -50,13 +49,8 @@ export const getStaticProps: GetStaticProps< const projectId = parseInt(context.params.projectId as string) // eslint-disable-next-line @typescript-eslint/no-explicit-any const props = (await getProjectStaticProps(projectId)) as any - if (props?.props?.i18n) { + if (props?.props) { props.props.i18n = i18n - } else { - props.props = { - ...props.props, - i18n: defaultI18n, - } } return {