diff --git a/frontend/src/i18n/fr.ts b/frontend/src/i18n/fr.ts index 209d20f..a2b80ef 100644 --- a/frontend/src/i18n/fr.ts +++ b/frontend/src/i18n/fr.ts @@ -58,6 +58,7 @@ const fr = { 'home.deleteTooltip': 'Supprimer', 'home.deleteConfirmTooltip': 'Cliquer a nouveau pour confirmer', 'home.noPreview': 'Aucune annonce majeure cette semaine.', + 'home.previewCount': '{count} articles', 'home.loadError': 'Erreur lors du chargement des syntheses.', 'home.deleteError': 'Erreur lors de la suppression de la synthese.', 'home.generationInProgress': 'Une generation est en cours...', diff --git a/frontend/src/pages/Home.tsx b/frontend/src/pages/Home.tsx index 3b65da6..2d8cb99 100644 --- a/frontend/src/pages/Home.tsx +++ b/frontend/src/pages/Home.tsx @@ -178,16 +178,13 @@ const Home: Component = () => {
{t('home.noPreview')}
- } + when={synth.first_section_title} + fallback={{t('home.noPreview')}
} > -• {item.title}
- )} -{synth.first_section_title}
++ {t('home.previewCount', { count: String(synth.first_section_item_count) })} +