summaryrefslogtreecommitdiffstats
path: root/src/pages/contact.tsx
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-03-23 12:29:43 +0100
committerArmand Philippot <git@armandphilippot.com>2022-03-23 12:29:43 +0100
commit4e7a96c5a831882463802cdd4f84fe1464969cb0 (patch)
tree528e2766120465bd74e94a8f5d37db7c3cd5a3cc /src/pages/contact.tsx
parent3a20d3ef2d6fcb6c77ca5ad6aeaf6179d23ecb3e (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/contact.tsx')
-rw-r--r--src/pages/contact.tsx7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/pages/contact.tsx b/src/pages/contact.tsx
index 9f8ec0f..5934dd9 100644
--- a/src/pages/contact.tsx
+++ b/src/pages/contact.tsx
@@ -22,6 +22,7 @@ const ContactPage: NextPageWithLayout = () => {
{
defaultMessage: 'Contact form - {websiteName}',
description: 'ContactPage: SEO - Page title',
+ id: 'Y3qRib',
},
{ websiteName: settings.name }
);
@@ -30,6 +31,7 @@ const ContactPage: NextPageWithLayout = () => {
defaultMessage:
"Contact {websiteName} through its website. All you need to do it's to fill the contact form.",
description: 'ContactPage: SEO - Meta description',
+ id: 'OIffB4',
},
{ websiteName: settings.name }
);
@@ -37,10 +39,12 @@ const ContactPage: NextPageWithLayout = () => {
const title = intl.formatMessage({
defaultMessage: 'Contact',
description: 'ContactPage: page title',
+ id: 'AN9iy7',
});
const intro = intl.formatMessage({
defaultMessage: 'Please fill the form to contact me.',
description: 'ContactPage: page introduction',
+ id: '8Ls2mD',
});
const webpageSchema: WebPage = {
@@ -99,6 +103,7 @@ const ContactPage: NextPageWithLayout = () => {
{intl.formatMessage({
defaultMessage: 'All fields marked with * are required.',
description: 'ContactPage: required fields text',
+ id: 'txusHd',
})}
</p>
<ContactForm />
@@ -108,6 +113,7 @@ const ContactPage: NextPageWithLayout = () => {
title={intl.formatMessage({
defaultMessage: 'Find me elsewhere',
description: 'ContactPage: social media widget title',
+ id: 'Qh2CwH',
})}
github={true}
gitlab={true}
@@ -128,6 +134,7 @@ export const getStaticProps: GetStaticProps = async (
const breadcrumbTitle = intl.formatMessage({
defaultMessage: 'Contact',
description: 'ContactPage: breadcrumb item',
+ id: 'CzTbM4',
});
const { locale } = context;
const translation = await loadTranslation(locale);