From 078425f1b287ff2f267ffe3bb57f9397aad305c6 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Sat, 3 Jan 2026 13:50:15 +0200 Subject: [PATCH] Translate search and save buttons --- web/components/searches/button.tsx | 20 ++++++++++++-------- web/messages/fr.json | 7 +++++++ 2 files changed, 19 insertions(+), 8 deletions(-) diff --git a/web/components/searches/button.tsx b/web/components/searches/button.tsx index a4d9f4d3..026e0caa 100644 --- a/web/components/searches/button.tsx +++ b/web/components/searches/button.tsx @@ -10,6 +10,7 @@ import {FilterFields} from "common/filters"; import {api} from "web/lib/api"; import {DisplayUser} from "common/api/user-types"; import {useState} from "react"; +import {useT} from "web/lib/locale"; import toast from "react-hot-toast"; import Link from "next/link"; @@ -27,11 +28,12 @@ export function BookmarkSearchButton(props: { } = props const user = useUser() + const t = useT() if (!user) return null return ( <> void }) { const {open, setOpen, bookmarkedSearches, refreshBookmarkedSearches} = props + const t = useT() return ( -

Saved Searches

+

{t('saved_searches.title', 'Saved Searches')}

{bookmarkedSearches?.length ? (<> -

We'll notify you daily when new people match your searches below.

+

{t('saved_searches.notification_note', "We'll notify you daily when new people match your searches below.")}

) : -

You haven't saved any search. To save one, click on Get Notified and we'll notify you daily when new people - match it.

} +

{t('saved_searches.empty_state', "You haven't saved any search. To save one, click on Get Notified and we'll notify you daily when new people match it.")}

} {/* >(new Set()) + const t = useT() const visibleUsers = (starredUsers || []).filter((u) => !removingIds.has(u.id)) return ( @@ -168,9 +172,9 @@ function StarModal(props: { // }} > -

Saved People

+

{t('saved_people.title', 'Saved People')}

{visibleUsers?.length ? (<> -

Here are the people you saved:

+

{t('saved_people.list_header', 'Here are the people you saved:')}