aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/ProjectSummary/ProjectSummary.tsx
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-03-23 12:29:43 +0100
committerArmand Philippot <git@armandphilippot.com>2022-03-23 12:29:43 +0100
commit4e7a96c5a831882463802cdd4f84fe1464969cb0 (patch)
tree528e2766120465bd74e94a8f5d37db7c3cd5a3cc /src/components/ProjectSummary/ProjectSummary.tsx
parent3a20d3ef2d6fcb6c77ca5ad6aeaf6179d23ecb3e (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/ProjectSummary/ProjectSummary.tsx')
-rw-r--r--src/components/ProjectSummary/ProjectSummary.tsx8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/components/ProjectSummary/ProjectSummary.tsx b/src/components/ProjectSummary/ProjectSummary.tsx
index e51015e..79e783e 100644
--- a/src/components/ProjectSummary/ProjectSummary.tsx
+++ b/src/components/ProjectSummary/ProjectSummary.tsx
@@ -33,6 +33,7 @@ const ProjectSummary = ({
alt={intl.formatMessage({
defaultMessage: '{title} preview',
description: 'ProjectSummary: cover alt text',
+ id: 'mh7tGg',
})}
layout="fill"
objectFit="contain"
@@ -46,6 +47,7 @@ const ProjectSummary = ({
{intl.formatMessage({
defaultMessage: 'Created on:',
description: 'ProjectSummary: creation date label',
+ id: 'CWi0go',
})}
</dt>
<dd>
@@ -61,6 +63,7 @@ const ProjectSummary = ({
{intl.formatMessage({
defaultMessage: 'Last updated on:',
description: 'ProjectSummary: update date label',
+ id: 'vJ+QDV',
})}
</dt>
<dd>
@@ -75,6 +78,7 @@ const ProjectSummary = ({
{intl.formatMessage({
defaultMessage: 'License:',
description: 'ProjectSummary: license label',
+ id: 'hKagVG',
})}
</dt>
<dd>{license}</dd>
@@ -87,6 +91,7 @@ const ProjectSummary = ({
defaultMessage:
'{count, plural, =0 {Technologies:} one {Technology:} other {Technologies:}}',
description: 'ProjectSummary: technologies list label',
+ id: 'enwhNm',
},
{ count: technologies.length }
)}
@@ -109,6 +114,7 @@ const ProjectSummary = ({
defaultMessage:
'{count, plural, =0 {Repositories:} one {Repository:} other {Repositories:}}',
description: 'ProjectSummary: repositories list label',
+ id: 'OTTv+m',
},
{ count: Object.keys(repos).length }
)}
@@ -143,6 +149,7 @@ const ProjectSummary = ({
{intl.formatMessage({
defaultMessage: 'Popularity:',
description: 'ProjectSummary: popularity label',
+ id: 'vgMk0q',
})}
</dt>
{repos.github && (
@@ -154,6 +161,7 @@ const ProjectSummary = ({
defaultMessage:
'{starsCount, plural, =0 {0 stars on Github} one {# star on Github} other {# stars on Github}}',
description: 'ProjectSummary: technologies list label',
+ id: 'aA3hOT',
},
{ starsCount: data.stargazers_count }
)}