diff --git a/front/i18n/Translations.ts b/front/i18n/Translations.ts index 5dc903f..c926407 100644 --- a/front/i18n/Translations.ts +++ b/front/i18n/Translations.ts @@ -321,6 +321,7 @@ export const en = { accountCreatedOn: 'Account Created on', downloadAPKInstructions: "Go to the latest release, unfold the 'Assets' section, and click 'android-build.apk'.", + discoverySuggestionSectionTitle: 'Suggested for you', }; export const fr: typeof en = { @@ -647,6 +648,7 @@ export const fr: typeof en = { accountCreatedOn: 'Compte créé le', downloadAPKInstructions: "Télécharger 'android-build.apk' dans la section 'Assets' de la dernière release", + discoverySuggestionSectionTitle: 'Suggéré pour vous', }; export const sp: typeof en = { @@ -980,4 +982,5 @@ export const sp: typeof en = { accountCreatedOn: 'Cuenta creada el', downloadAPKInstructions: "Descargue 'android-build.apk' en la sección 'Assets' de la última versión", + discoverySuggestionSectionTitle: 'Sugerido para ti', }; diff --git a/front/views/LeaderboardView.tsx b/front/views/LeaderboardView.tsx index fcb90d1..132787f 100644 --- a/front/views/LeaderboardView.tsx +++ b/front/views/LeaderboardView.tsx @@ -29,7 +29,9 @@ const Leaderboardiew = () => { ] as const; return ( - + { const suggestionsQuery = useQuery( @@ -16,6 +17,7 @@ const HomeView = () => { const isPhone = screenSize === 'small'; const topSuggestions = suggestionsQuery.data?.slice(0, 4) ?? []; const suggestions = suggestionsQuery.data?.slice(4) ?? []; + const { t } = useTranslation(); return ( @@ -25,6 +27,7 @@ const HomeView = () => { display: 'flex', flexDirection: 'column', gap: 16, + padding: 8, }} > { }} > - {'Suggestions'} + {t('discoverySuggestionSectionTitle')} { } return ( - + setSearchQuery(query)} /> {rawResult.isSuccess ? (