diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-03-23 12:29:43 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-03-23 12:29:43 +0100 |
| commit | 4e7a96c5a831882463802cdd4f84fe1464969cb0 (patch) | |
| tree | 528e2766120465bd74e94a8f5d37db7c3cd5a3cc /src/pages/404.tsx | |
| parent | 3a20d3ef2d6fcb6c77ca5ad6aeaf6179d23ecb3e (diff) | |
refactor: use formatjs swc plugin
I'm not able to configure SWC plugins in Next.js so to make it works,
all translation must have an id.
Diffstat (limited to 'src/pages/404.tsx')
| -rw-r--r-- | src/pages/404.tsx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pages/404.tsx b/src/pages/404.tsx index d5b2e86..24c6951 100644 --- a/src/pages/404.tsx +++ b/src/pages/404.tsx @@ -16,12 +16,14 @@ const Error404: NextPageWithLayout = () => { { defaultMessage: 'Error 404: Page not found - {websiteName}', description: '404Page: SEO - Page title', + id: '310o3F', }, { websiteName: settings.name } ); const pageDescription = intl.formatMessage({ defaultMessage: 'Page not found.', description: '404Page: SEO - Meta description', + id: '48Ww//', }); return ( @@ -35,12 +37,14 @@ const Error404: NextPageWithLayout = () => { title={intl.formatMessage({ defaultMessage: 'Page not found', description: '404Page: page title', + id: 'OccTWi', })} /> <div className={styles.body}> <FormattedMessage defaultMessage="Sorry, it seems that the page your are looking for does not exist. If you think this path should work, feel free to <link>contact me</link> with the necessary information so that I can fix the problem." description="404Page: page body" + id="ZWh78Y" values={{ link: (chunks: string) => ( <Link href="/contact/"> @@ -64,6 +68,7 @@ export const getStaticProps: GetStaticProps = async ( const breadcrumbTitle = intl.formatMessage({ defaultMessage: 'Error 404', description: '404Page: breadcrumb item', + id: 'ywkCsK', }); const { locale } = context; const translation = await loadTranslation(locale); |
