github
1381 of 2787 branches covered (49.55%)
15 of 115 new or added lines in 12 files covered. (13.04%)
13889 of 77479 relevant lines covered (17.93%)
1.79 hits per line
NEW
|
import type { GetStaticPropsContext } from 'next'; |
|
NEW
|
import { systemConfig } from '@/features/i18n/system.config'; |
× |
NEW
|
import { PaymentRequiredPage } from '@/features/system/pages'; |
× |
NEW
|
import { getServerSideTranslations } from '@/lib/i18n'; |
× |
NEW
|
|
× |
NEW
|
export const getStaticProps = async (context: GetStaticPropsContext) => { |
× |
NEW
|
const { locale = 'en' } = context; |
× |
NEW
|
|
× |
NEW
|
const inlinedTranslation = await getServerSideTranslations(locale, systemConfig.i18nNamespaces);
|
× |
NEW
|
|
× |
NEW
|
return {
|
× |
NEW
|
props: {
|
× |
NEW
|
locale: locale,
|
× |
NEW
|
...inlinedTranslation, |
× |
NEW
|
}, |
× |
NEW
|
}; |
× |
NEW
|
}; |
× |
NEW
|
|
× |
NEW
|
export default function Custom402() { |
× |
NEW
|
return <PaymentRequiredPage />;
|
× |
NEW
|
} |
× |