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/recherche/index.tsx | 9 +++++++++
 1 file changed, 9 insertions(+)

(limited to 'src/pages/recherche/index.tsx')

diff --git a/src/pages/recherche/index.tsx b/src/pages/recherche/index.tsx
index 42e45cd..b843f8d 100644
--- a/src/pages/recherche/index.tsx
+++ b/src/pages/recherche/index.tsx
@@ -81,12 +81,14 @@ const Search: NextPageWithLayout = () => {
         {
           defaultMessage: 'Search results for {query}',
           description: 'SearchPage: search results text',
+          id: 'VSGuGE',
         },
         { query }
       )
     : intl.formatMessage({
         defaultMessage: 'Search',
         description: 'SearchPage: page title',
+        id: 'U+35YD',
       });
 
   const description = query
@@ -94,6 +96,7 @@ const Search: NextPageWithLayout = () => {
         {
           defaultMessage: 'Discover search results for {query}',
           description: 'SearchPage: meta description with query',
+          id: 'A4LTGq',
         },
         { query }
       )
@@ -101,6 +104,7 @@ const Search: NextPageWithLayout = () => {
         {
           defaultMessage: 'Search for a post on {websiteName}',
           description: 'SearchPage: meta description without query',
+          id: 'PrIz5o',
         },
         { websiteName: settings.name }
       );
@@ -122,6 +126,7 @@ const Search: NextPageWithLayout = () => {
       return intl.formatMessage({
         defaultMessage: 'Failed to load.',
         description: 'SearchPage: failed to load text',
+        id: 'fOe8rH',
       });
     if (!data) return <Spinner />;
 
@@ -155,6 +160,7 @@ const Search: NextPageWithLayout = () => {
                 {intl.formatMessage({
                   defaultMessage: 'Load more?',
                   description: 'SearchPage: load more text',
+                  id: 'pEtJik',
                 })}
               </Button>
             </>
@@ -165,12 +171,14 @@ const Search: NextPageWithLayout = () => {
             title={intl.formatMessage({
               defaultMessage: 'Thematics',
               description: 'SearchPage: thematics list widget title',
+              id: 'Dq6+WH',
             })}
           />
           <TopicsList
             title={intl.formatMessage({
               defaultMessage: 'Topics',
               description: 'SearchPage: topics list widget title',
+              id: 'N804XO',
             })}
           />
         </Sidebar>
@@ -188,6 +196,7 @@ export const getStaticProps: GetStaticProps = async (
   const breadcrumbTitle = intl.formatMessage({
     defaultMessage: 'Search',
     description: 'SearchPage: breadcrumb item',
+    id: 'TfU6Qm',
   });
   const { locale } = context;
   const translation = await loadTranslation(locale);
-- 
cgit v1.2.3

