diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-03-23 12:29:43 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-03-23 12:29:43 +0100 |
| commit | 4e7a96c5a831882463802cdd4f84fe1464969cb0 (patch) | |
| tree | 528e2766120465bd74e94a8f5d37db7c3cd5a3cc /src/components/Breadcrumb/Breadcrumb.tsx | |
| parent | 3a20d3ef2d6fcb6c77ca5ad6aeaf6179d23ecb3e (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/components/Breadcrumb/Breadcrumb.tsx')
| -rw-r--r-- | src/components/Breadcrumb/Breadcrumb.tsx | 7 |
1 files changed, 7 insertions, 0 deletions
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> |
