github
1297 of 2652 branches covered (48.91%)
15 of 115 new or added lines in 12 files covered. (13.04%)
2 existing lines in 1 file now uncovered.13234 of 75486 relevant lines covered (17.53%)
1.84 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
|
} |
× |