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/components/Breadcrumb/Breadcrumb.tsx | 7 +++++++
 1 file changed, 7 insertions(+)

(limited to 'src/components/Breadcrumb/Breadcrumb.tsx')

diff --git a/src/components/Breadcrumb/Breadcrumb.tsx b/src/components/Breadcrumb/Breadcrumb.tsx
index 92350c0..a7b945a 100644
--- a/src/components/Breadcrumb/Breadcrumb.tsx
+++ b/src/components/Breadcrumb/Breadcrumb.tsx
@@ -25,6 +25,7 @@ const Breadcrumb = ({ pageTitle }: { pageTitle: string }) => {
               {intl.formatMessage({
                 defaultMessage: 'Home',
                 description: 'Breadcrumb: Home item',
+                id: 'Enij19',
               })}
             </a>
           </Link>
@@ -37,6 +38,7 @@ const Breadcrumb = ({ pageTitle }: { pageTitle: string }) => {
                   {intl.formatMessage({
                     defaultMessage: 'Blog',
                     description: 'Breadcrumb: Blog item',
+                    id: 'z0ic9c',
                   })}
                 </a>
               </Link>
@@ -51,6 +53,7 @@ const Breadcrumb = ({ pageTitle }: { pageTitle: string }) => {
                   {intl.formatMessage({
                     defaultMessage: 'Projects',
                     description: 'Breadcrumb: Projects item',
+                    id: 'Igx3qp',
                   })}
                 </a>
               </Link>
@@ -70,6 +73,7 @@ const Breadcrumb = ({ pageTitle }: { pageTitle: string }) => {
       name: intl.formatMessage({
         defaultMessage: 'Home',
         description: 'Breadcrumb: Home item',
+        id: 'Enij19',
       }),
       item: settings.url,
     };
@@ -83,6 +87,7 @@ const Breadcrumb = ({ pageTitle }: { pageTitle: string }) => {
         name: intl.formatMessage({
           defaultMessage: 'Blog',
           description: 'Breadcrumb: Blog item',
+          id: 'z0ic9c',
         }),
         item: `${settings.url}/blog`,
       };
@@ -97,6 +102,7 @@ const Breadcrumb = ({ pageTitle }: { pageTitle: string }) => {
         name: intl.formatMessage({
           defaultMessage: 'Projects',
           description: 'Breadcrumb: Projects item',
+          id: 'Igx3qp',
         }),
         item: `${settings.url}/projets`,
       };
@@ -136,6 +142,7 @@ const Breadcrumb = ({ pageTitle }: { pageTitle: string }) => {
             {intl.formatMessage({
               defaultMessage: 'You are here:',
               description: 'Breadcrumb: You are here prefix',
+              id: '16zl9Z',
             })}
           </span>
           <ol className={styles.list}>{getItems()}</ol>
-- 
cgit v1.2.3

