diff --git a/memento-note/components/mobile-action-sheet.tsx b/memento-note/components/mobile-action-sheet.tsx index 2b11068..63ee0df 100644 --- a/memento-note/components/mobile-action-sheet.tsx +++ b/memento-note/components/mobile-action-sheet.tsx @@ -101,84 +101,84 @@ export function MobileActionSheet({
- Cliquez pour éditer + {t('editor.clickToEdit') || 'Cliquez pour éditer'}
)}- {bl.sourceNote.title || '(Sans titre)'} + {bl.sourceNote.title || (t('notes.untitled') || '(Sans titre)')}
{bl.contextSnippet && (diff --git a/memento-note/lib/editor/undo-redo-feedback-extension.ts b/memento-note/lib/editor/undo-redo-feedback-extension.ts index 3536c4a..67114df 100644 --- a/memento-note/lib/editor/undo-redo-feedback-extension.ts +++ b/memento-note/lib/editor/undo-redo-feedback-extension.ts @@ -8,16 +8,26 @@ import { toast } from 'sonner' export const UndoRedoFeedbackExtension = Extension.create({ name: 'undoRedoFeedback', + addOptions() { + return { + undoText: 'Action annulée', + undoHint: 'Faites {key}+Maj+Z pour rétablir.', + redoText: 'Action rétablie', + redoHint: 'Faites {key}+Z pour annuler.', + } + }, + addKeyboardShortcuts() { const isMac = typeof window !== 'undefined' && /Mac|iPod|iPhone|iPad/.test(navigator.userAgent) const modKey = isMac ? '⌘' : 'Ctrl' + const o = this.options return { 'Mod-z': () => { const success = this.editor.commands.undo() if (success) { - toast.info('Action annulée', { - description: `Faites ${modKey}+Maj+Z pour rétablir.`, + toast.info(o.undoText, { + description: o.undoHint.replace('{key}', modKey), duration: 2000, }) } @@ -26,8 +36,8 @@ export const UndoRedoFeedbackExtension = Extension.create({ 'Mod-y': () => { const success = this.editor.commands.redo() if (success) { - toast.info('Action rétablie', { - description: `Faites ${modKey}+Z pour annuler.`, + toast.info(o.redoText, { + description: o.redoHint.replace('{key}', modKey), duration: 2000, }) } @@ -36,8 +46,8 @@ export const UndoRedoFeedbackExtension = Extension.create({ 'Mod-Shift-z': () => { const success = this.editor.commands.redo() if (success) { - toast.info('Action rétablie', { - description: `Faites ${modKey}+Z pour annuler.`, + toast.info(o.redoText, { + description: o.redoHint.replace('{key}', modKey), duration: 2000, }) } diff --git a/memento-note/locales/en.json b/memento-note/locales/en.json index 937ee20..2fd68c1 100644 --- a/memento-note/locales/en.json +++ b/memento-note/locales/en.json @@ -2617,6 +2617,16 @@ "slashLivingBlock": "Living Block", "slashLivingBlockDesc": "Insert from another note", "frequentCommands": "★ Frequent", + "mobileBlockActions": "Block Actions", + "mobileSelectAll": "Select All", + "mobileDuplicate": "Duplicate", + "mobileDelete": "Delete", + "mobileAiNote": "AI Note", + "mobileConvertFormat": "Convert Format", + "mobileParagraph": "Paragraph", + "mobileQuote": "Quote", + "editorBacklinks": "Incoming Links", + "editorClickToEdit": "Click to edit", "exercisesLoading": "Generating exercises...", "exercisesGenerated": "exercises created!", "aiGenerateExercises": "Generate exercises", diff --git a/memento-note/locales/fr.json b/memento-note/locales/fr.json index 52d987b..2c54cda 100644 --- a/memento-note/locales/fr.json +++ b/memento-note/locales/fr.json @@ -2621,6 +2621,16 @@ "slashLivingBlock": "Bloc vivant", "slashLivingBlockDesc": "Insérer depuis une autre note", "frequentCommands": "★ Fréquents", + "mobileBlockActions": "Actions sur le bloc", + "mobileSelectAll": "Sélectionner tout", + "mobileDuplicate": "Dupliquer", + "mobileDelete": "Supprimer", + "mobileAiNote": "IA Note", + "mobileConvertFormat": "Convertir le format", + "mobileParagraph": "Paragraphe", + "mobileQuote": "Citation", + "editorBacklinks": "Liens entrants", + "editorClickToEdit": "Cliquez pour éditer", "exercisesLoading": "Génération des exercices...", "exercisesGenerated": "exercices créés !", "aiGenerateExercises": "Générer des exercices",