feat: export conversation as Markdown file

Add a download button in the header that exports the current session's
messages as a well-formatted Markdown file. Includes:
- User/assistant/system event labels with timestamps
- Thinking blocks as collapsible <details>
- Tool calls with JSON parameters
- Tool results as collapsible sections
- Image placeholders
- Session label and export date in header

i18n: EN + FR translations for the export tooltip.
This commit is contained in:
Nicolas Varrot
2026-02-12 18:38:54 +00:00
parent d6449773c3
commit 8d4b606482
4 changed files with 109 additions and 4 deletions

View File

@@ -94,6 +94,9 @@ const en = {
'error.reload': 'Reload page',
'shortcuts.navigationSection': 'Navigation',
'shortcuts.generalSection': 'General',
// Export
'header.export': 'Export conversation as Markdown',
} as const;
const fr: Record<keyof typeof en, string> = {
@@ -172,6 +175,8 @@ const fr: Record<keyof typeof en, string> = {
'error.reload': 'Recharger',
'shortcuts.navigationSection': 'Navigation',
'shortcuts.generalSection': 'Général',
'header.export': 'Exporter la conversation en Markdown',
};
export type TranslationKey = keyof typeof en;