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/components/ProjectSummary/ProjectSummary.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/components/ProjectSummary/ProjectSummary.tsx') 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', })}
@@ -61,6 +63,7 @@ const ProjectSummary = ({ {intl.formatMessage({ defaultMessage: 'Last updated on:', description: 'ProjectSummary: update date label', + id: 'vJ+QDV', })}
@@ -75,6 +78,7 @@ const ProjectSummary = ({ {intl.formatMessage({ defaultMessage: 'License:', description: 'ProjectSummary: license label', + id: 'hKagVG', })}
{license}
@@ -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', })} {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 } )} -- cgit v1.2.3