diff --git a/web/components/profile-grid.tsx b/web/components/profile-grid.tsx index a61f97fe..c0876df2 100644 --- a/web/components/profile-grid.tsx +++ b/web/components/profile-grid.tsx @@ -11,6 +11,7 @@ import Link from "next/link"; import {Row} from "web/components/layout/row"; import {CompatibleBadge} from "web/components/widgets/compatible-badge"; import {useUser} from "web/hooks/use-user"; +import {useT} from "web/lib/locale"; export const ProfileGrid = (props: { profiles: Profile[] @@ -32,6 +33,7 @@ export const ProfileGrid = (props: { } = props const user = useUser() + const t = useT() const other_profiles = profiles.filter((profile) => profile.user_id !== user?.id); @@ -65,8 +67,8 @@ export const ProfileGrid = (props: { {!isLoadingMore && !isReloading && other_profiles.length === 0 && (
-

No profiles found.

-

Feel free to click on Get Notified and we'll notify you when new users match your search!

+

{t('profile_grid.no_profiles', 'No profiles found.')}

+

{t('profile_grid.notification_cta', 'Feel free to click on Get Notified and we\'ll notify you when new users match your search!')}

)} diff --git a/web/messages/fr.json b/web/messages/fr.json index d3956d3b..de335ffb 100644 --- a/web/messages/fr.json +++ b/web/messages/fr.json @@ -860,6 +860,8 @@ "common.or": "Ou", "common.yes": "Oui", "common.no": "Non", + "profile_grid.no_profiles": "Aucun profil trouvé.", + "profile_grid.notification_cta": "N'hésitez pas à cliquer sur \"Être notifié\" et nous vous préviendrons quand de nouveaux utilisateurs correspondront à votre recherche !", "add_photos.add_description": "Ajouter une description", "add_photos.profile_picture_hint": "L'image mise en surbrillance est votre photo de profil" } \ No newline at end of file