From 47b854de26dea24e7838fd0804df103dee99635f Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Fri, 28 Jan 2022 18:19:24 +0100 Subject: chore(i18n): replace i18n provider and helpers --- src/pages/404.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/pages/404.tsx') diff --git a/src/pages/404.tsx b/src/pages/404.tsx index 5ba7b95..64c74ba 100644 --- a/src/pages/404.tsx +++ b/src/pages/404.tsx @@ -2,12 +2,12 @@ import { getLayout } from '@components/Layouts/Layout'; import PostHeader from '@components/PostHeader/PostHeader'; import { seo } from '@config/seo'; import { t, Trans } from '@lingui/macro'; +import styles from '@styles/pages/Page.module.scss'; import { NextPageWithLayout } from '@ts/types/app'; -import { defaultLocale, loadTranslation } from '@utils/helpers/i18n'; +import { loadTranslation } from '@utils/helpers/i18n'; import { GetStaticProps, GetStaticPropsContext } from 'next'; import Head from 'next/head'; import Link from 'next/link'; -import styles from '@styles/pages/Page.module.scss'; const error404: NextPageWithLayout = () => { return ( @@ -40,7 +40,7 @@ export const getStaticProps: GetStaticProps = async ( ) => { const breadcrumbTitle = t`Error`; const { locale } = context; - const translation = await loadTranslation(locale || defaultLocale); + const translation = await loadTranslation(locale); return { props: { -- cgit v1.2.3