diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-03-24 15:02:39 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-03-24 15:02:39 +0100 |
| commit | ef15022857409312e2b26585ba194f9838bf1262 (patch) | |
| tree | 4db2b9cb28eb823a1aacb10eaecc41c4964e5869 /src/components/MetaItems/ReadingTime | |
| parent | 8bb3431fc1c545643511e586e6fa7218521b716f (diff) | |
| parent | 9226671f49b507ce6f71e6e2c3621014f05f74e9 (diff) | |
refactor: replace babel with swc
The build time will be faster with SWC.
Diffstat (limited to 'src/components/MetaItems/ReadingTime')
| -rw-r--r-- | src/components/MetaItems/ReadingTime/ReadingTime.tsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/components/MetaItems/ReadingTime/ReadingTime.tsx b/src/components/MetaItems/ReadingTime/ReadingTime.tsx index 94215b3..79d6f3c 100644 --- a/src/components/MetaItems/ReadingTime/ReadingTime.tsx +++ b/src/components/MetaItems/ReadingTime/ReadingTime.tsx @@ -20,6 +20,7 @@ const ReadingTime = ({ return intl.formatMessage({ defaultMessage: 'less than 1 minute', description: 'ReadingTime: Reading time value', + id: 'ySsWZl', }); } @@ -28,6 +29,7 @@ const ReadingTime = ({ defaultMessage: '{time, plural, =0 {# minutes} one {# minute} other {# minutes}}', description: 'ReadingTime: reading time value', + id: 'wdqOpf', }, { time } ); @@ -38,12 +40,14 @@ const ReadingTime = ({ title={intl.formatMessage({ defaultMessage: 'Reading time:', description: 'ReadingTime: reading time meta label', + id: 'n0Gbod', })} value={getEstimation()} info={intl.formatMessage( { - defaultMessage: `Approximately {number} words`, + defaultMessage: 'Approximately {number} words', description: 'ReadingTime: number of words', + id: 'k7/SkN', }, { number: words.toLocaleString(locale) } )} |
