diff --git a/memento-note/components/rich-text-editor.tsx b/memento-note/components/rich-text-editor.tsx index b1c5757..fa9747d 100644 --- a/memento-note/components/rich-text-editor.tsx +++ b/memento-note/components/rich-text-editor.tsx @@ -1744,8 +1744,8 @@ function SlashCommandMenu({ editor, onInsertImage, onSuggestCharts }: { editor: { ...slashCommands[25], title: t('richTextEditor.slashSubscript'), description: t('richTextEditor.slashSubscriptDesc'), categoryId: 'text' }, { ...slashCommands[26], title: t('richTextEditor.slashDiagram'), description: t('richTextEditor.slashDiagramDesc'), categoryId: 'ai' }, { ...slashCommands[27], title: t('richTextEditor.slashSlides'), description: t('richTextEditor.slashSlidesDesc'), categoryId: 'ai' }, - { ...slashCommands[28], title: 'Suggest Charts', description: 'AI suggère des graphiques basés sur votre contenu', categoryId: 'ai' }, - { ...slashCommands[29], title: 'Living Block', description: 'Insérer un bloc vivant depuis une autre note', categoryId: 'embed' }, + { ...slashCommands[28], title: t('richTextEditor.slashCharts') || 'Graphiques IA', description: t('richTextEditor.slashChartsDesc') || 'IA suggère des graphiques', categoryId: 'ai' }, + { ...slashCommands[29], title: t('richTextEditor.slashLivingBlock') || 'Bloc vivant', description: t('richTextEditor.slashLivingBlockDesc') || 'Insérer depuis une autre note', categoryId: 'embed' }, { ...slashCommands[30], title: t('richTextEditor.slashDatabase'), description: t('richTextEditor.slashDatabaseDesc'), categoryId: 'data', slashKeywords: ['database', 'db', 'base', 'données', 'donnees', 'vue', 'tableau', 'structured', 'structuree', 'structurée'] }, { ...slashCommands[31], title: t('richTextEditor.slashToggle'), description: t('richTextEditor.slashToggleDesc'), categoryId: 'text', slashKeywords: ['toggle', 'accordion', 'replier', 'deroulant', 'déroulant', 'section'] }, { ...slashCommands[32], title: t('richTextEditor.slashCallout'), description: t('richTextEditor.slashCalloutDesc'), categoryId: 'text', slashKeywords: ['callout', 'encadre', 'encadré', 'info', 'alerte', 'astuce', 'tip', 'warning'] }, @@ -2150,7 +2150,7 @@ function SlashCommandMenu({ editor, onInsertImage, onSuggestCharts }: { editor: catId === ('frequent' as any) && 'text-amber-500 font-semibold' )}> {catId === 'ai' && } - {catId === ('frequent' as any) ? '★ Fréquents' : slashCategoryLabel(catId, t)} + {catId === ('frequent' as any) ? (t('richTextEditor.frequentCommands') || '★ Fréquents') : slashCategoryLabel(catId, t)} {items.map((item) => { flatIndex++ diff --git a/memento-note/locales/en.json b/memento-note/locales/en.json index eb6438b..937ee20 100644 --- a/memento-note/locales/en.json +++ b/memento-note/locales/en.json @@ -2612,6 +2612,11 @@ "publishBlocked": "Publication refused", "slashSubPage": "Sub-page", "slashSubPageDesc": "Create a linked note inside this note", + "slashCharts": "AI Charts", + "slashChartsDesc": "AI suggests charts", + "slashLivingBlock": "Living Block", + "slashLivingBlockDesc": "Insert from another note", + "frequentCommands": "★ Frequent", "exercisesLoading": "Generating exercises...", "exercisesGenerated": "exercises created!", "aiGenerateExercises": "Generate exercises", diff --git a/memento-note/locales/fr.json b/memento-note/locales/fr.json index 6592a82..52d987b 100644 --- a/memento-note/locales/fr.json +++ b/memento-note/locales/fr.json @@ -2616,6 +2616,11 @@ "publishBlocked": "Publication refusée", "slashSubPage": "Sous-page", "slashSubPageDesc": "Créer une note liée dans cette note", + "slashCharts": "Graphiques IA", + "slashChartsDesc": "IA suggère des graphiques", + "slashLivingBlock": "Bloc vivant", + "slashLivingBlockDesc": "Insérer depuis une autre note", + "frequentCommands": "★ Fréquents", "exercisesLoading": "Génération des exercices...", "exercisesGenerated": "exercices créés !", "aiGenerateExercises": "Générer des exercices",