From 29ea3a600ad72648aa5d0081668ed95c35f99566 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Sun, 28 Dec 2025 11:43:27 +0200 Subject: [PATCH] Translate /stats --- web/messages/fr.json | 13 +++++++++++++ web/pages/stats.tsx | 28 +++++++++++++++------------- 2 files changed, 28 insertions(+), 13 deletions(-) diff --git a/web/messages/fr.json b/web/messages/fr.json index 880d8456..0eb1466b 100644 --- a/web/messages/fr.json +++ b/web/messages/fr.json @@ -99,6 +99,19 @@ "about.donate.button": "Options de don", "about.final.title": "Parlez-en à vos amis et votre famille", "about.final.text": "Merci de soutenir notre mission !", + "stats.seo.title": "Statistiques", + "stats.seo.description": "Statistiques", + "stats.title": "Croissance et statistiques", + "stats.members": "Membres", + "stats.active_members": "Membres actifs (le mois dernier)", + "stats.discussions": "Discussions", + "stats.messages": "Messages", + "stats.compatibility_prompts": "Questions de compatibilité", + "stats.prompts_answered": "Questions répondues", + "stats.proposals": "Propositions", + "stats.votes": "Votes", + "stats.searches_bookmarked": "Recherches mises en favoris", + "stats.endorsements": "Recommandations", "contact.seo.title": "Contact", "contact.seo.description": "Contactez-nous", "contact.title": "Contact", diff --git a/web/pages/stats.tsx b/web/pages/stats.tsx index 35f3efd1..6387f26e 100644 --- a/web/pages/stats.tsx +++ b/web/pages/stats.tsx @@ -6,8 +6,10 @@ import StatBox from "web/components/widgets/stat-box"; import clsx from "clsx"; import {Col} from "web/components/layout/col"; import {SEO} from "web/components/SEO"; +import {useT} from "web/lib/locale"; export default function Stats() { + const t = useT() const [data, setData] = useState>({}) useEffect(() => { @@ -45,11 +47,11 @@ export default function Stats() { return ( -

Growth & Stats

+

{t('stats.title','Growth & Stats')}

@@ -60,16 +62,16 @@ export default function Stats() { 'text-ink-1000 mx-auto w-full grid grid-cols-1 gap-8 max-w-3xl sm:grid-cols-2 lg:min-h-0 lg:pt-4 mt-4', )} > - {!!data.profiles && } - {!!data.active_members && } - {!!data.private_user_message_channels && } - {!!data.private_user_messages && } - {!!data.compatibility_prompts && } - {!!data.compatibility_answers && } - {!!data.votes && } - {!!data.vote_results && } - {!!data.bookmarked_searches && } - {!!data.profile_comments && } + {!!data.profiles && } + {!!data.active_members && } + {!!data.private_user_message_channels && } + {!!data.private_user_messages && } + {!!data.compatibility_prompts && } + {!!data.compatibility_answers && } + {!!data.votes && } + {!!data.vote_results && } + {!!data.bookmarked_searches && } + {!!data.profile_comments && }