aboutsummaryrefslogtreecommitdiffstats
path: root/src/components
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-02-13 17:22:33 +0100
committerArmand Philippot <git@armandphilippot.com>2022-02-13 17:22:33 +0100
commit45e4e10f4c7b818e83f6f7ab0255206e90f55851 (patch)
tree9007744fa0d0faaba1c13edb7fd08f17e30270c6 /src/components
parent22d5ffa155080037a32a64814002b987bddce3b4 (diff)
chore: update some texts to reduce its width
In French, "Utiliser le thème sombre" was a little too long, so instead I decided to remove the "Toggle" word and add an icon to help user understand the button purpose. Same way, "Aucune étoile" was too long, so I replace it with "0 étoile"
Diffstat (limited to 'src/components')
-rw-r--r--src/components/MDX/CodeBlock/CodeBlock.tsx4
-rw-r--r--src/components/ProjectSummary/ProjectSummary.tsx4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/components/MDX/CodeBlock/CodeBlock.tsx b/src/components/MDX/CodeBlock/CodeBlock.tsx
index 4136772..b5cb30e 100644
--- a/src/components/MDX/CodeBlock/CodeBlock.tsx
+++ b/src/components/MDX/CodeBlock/CodeBlock.tsx
@@ -45,11 +45,11 @@ const CodeBlock = ({
description: 'Prism: error text',
});
const darkTheme = intl.formatMessage({
- defaultMessage: 'Toggle Dark Theme',
+ defaultMessage: 'Dark Theme 🌙',
description: 'Prism: toggle dark theme button text',
});
const lightTheme = intl.formatMessage({
- defaultMessage: 'Toggle Light Theme',
+ defaultMessage: 'Light Theme 🌞',
description: 'Prism: toggle light theme button text',
});
diff --git a/src/components/ProjectSummary/ProjectSummary.tsx b/src/components/ProjectSummary/ProjectSummary.tsx
index 03c9b87..e51015e 100644
--- a/src/components/ProjectSummary/ProjectSummary.tsx
+++ b/src/components/ProjectSummary/ProjectSummary.tsx
@@ -152,8 +152,8 @@ const ProjectSummary = ({
{intl.formatMessage(
{
defaultMessage:
- '{starsCount, plural, =0 {No stars on Github} one {# star on Github} other {# stars on Github}}',
- description: 'ProjectPreview: technologies list label',
+ '{starsCount, plural, =0 {0 stars on Github} one {# star on Github} other {# stars on Github}}',
+ description: 'ProjectSummary: technologies list label',
},
{ starsCount: data.stargazers_count }
)}