From 4e7a96c5a831882463802cdd4f84fe1464969cb0 Mon Sep 17 00:00:00 2001 From: Armand Philippot 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/index.tsx | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/pages/index.tsx') diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 513df69..ca0a809 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -38,6 +38,7 @@ const Home: NextPageWithLayout = ({ {intl.formatMessage({ defaultMessage: 'Web development', description: 'HomePage: link to web development thematic', + id: 'vkF/RP', })} @@ -46,6 +47,7 @@ const Home: NextPageWithLayout = ({ {intl.formatMessage({ defaultMessage: 'Projects', description: 'HomePage: link to projects', + id: 'N44SOc', })} @@ -84,6 +86,7 @@ const Home: NextPageWithLayout = ({ {intl.formatMessage({ defaultMessage: 'Free', description: 'HomePage: link to free thematic', + id: 'w8GrOf', })} @@ -92,6 +95,7 @@ const Home: NextPageWithLayout = ({ {intl.formatMessage({ defaultMessage: 'Linux', description: 'HomePage: link to Linux thematic', + id: 'jASD7k', })} @@ -107,6 +111,7 @@ const Home: NextPageWithLayout = ({ {intl.formatMessage({ defaultMessage: 'Shaarli', description: 'HomePage: link to Shaarli', + id: 'i5L19t', })} @@ -123,6 +128,7 @@ const Home: NextPageWithLayout = ({ {intl.formatMessage({ defaultMessage: 'Contact me', description: 'HomePage: contact button text', + id: 'sO/Iwj', })} @@ -132,6 +138,7 @@ const Home: NextPageWithLayout = ({ {intl.formatMessage({ defaultMessage: 'Subscribe', description: 'HomePage: RSS feed subscription text', + id: 'T4YA64', })} @@ -157,6 +164,7 @@ const Home: NextPageWithLayout = ({ { defaultMessage: '{websiteName} | Front-end developer: WordPress/React', description: 'HomePage: SEO - Page title', + id: 'PXp2hv', }, { websiteName: settings.name } ); @@ -165,6 +173,7 @@ const Home: NextPageWithLayout = ({ defaultMessage: '{websiteName} is a front-end developer located in France. He codes and he writes mostly about web development and open-source.', description: 'HomePage: SEO - Meta description', + id: 'tMuNTy', }, { websiteName: settings.name } ); -- cgit v1.2.3