From 4e7a96c5a831882463802cdd4f84fe1464969cb0 Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Wed, 23 Mar 2022 12:29:43 +0100
Subject: 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.
---
 src/pages/contact.tsx | 7 +++++++
 1 file changed, 7 insertions(+)

(limited to 'src/pages/contact.tsx')

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);
-- 
cgit v1.2.3

