diff --git a/frontend/index.html b/frontend/index.html index 1f5fe60..5c7e2c0 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -999,7 +999,7 @@ data-lucide="keyboard" style="width: 16px; height: 16px" > - Raccourcis & Astuces + Raccourcis & Astuces bytes < 1024 ? `${bytes} o` : bytes < 1048576 ? `${(bytes/1024).toFixed(1)} Ko` : bytes < 1073741824 ? `${(bytes/1048576).toFixed(1)} Mo` : `${(bytes/1073741824).toFixed(1)} Go`; const items = [ - { icon: "files", label: "Fichiers", value: data.total_files.toLocaleString() }, - { icon: "tags", label: "Tags uniques", value: data.total_tags.toLocaleString() }, - { icon: "hard-drive", label: "Taille totale", value: fmtSize(data.total_size_bytes) }, - { icon: "folder-open", label: "Vaults", value: data.vaults.length.toString() }, + { icon: "files", label: t('dashboard.stats_files'), value: data.total_files.toLocaleString() }, + { icon: "tags", label: t('dashboard.stats_tags'), value: data.total_tags.toLocaleString() }, + { icon: "hard-drive", label: t('dashboard.stats_size'), value: fmtSize(data.total_size_bytes) }, + { icon: "folder-open", label: t('dashboard.stats_vaults'), value: data.vaults.length.toString() }, ]; grid.innerHTML = items.map(i => ` diff --git a/frontend/locales/en.json b/frontend/locales/en.json index ee0fe03..1f5dc28 100644 --- a/frontend/locales/en.json +++ b/frontend/locales/en.json @@ -1035,5 +1035,10 @@ "config.force_reindex": "Force reindex", "search.previous": "← Previous", "viewer.copied": "Copied!", - "viewer.shared_doc_title": "Shared document — click to manage" + "viewer.shared_doc_title": "Shared document — click to manage", + "dashboard.stats_files": "Files", + "dashboard.stats_size": "Total size", + "dashboard.stats_tags": "Unique tags", + "dashboard.stats_vaults": "Vaults", + "help.shortcuts_title": "Shortcuts & Tips" } diff --git a/frontend/locales/fr.json b/frontend/locales/fr.json index e6dfe4d..2a5cbff 100644 --- a/frontend/locales/fr.json +++ b/frontend/locales/fr.json @@ -1035,5 +1035,10 @@ "config.force_reindex": "Forcer réindexation", "search.previous": "← Précédent", "viewer.copied": "Copié !", - "viewer.shared_doc_title": "Document partagé — cliquer pour gérer" + "viewer.shared_doc_title": "Document partagé — cliquer pour gérer", + "dashboard.stats_files": "Fichiers", + "dashboard.stats_size": "Taille totale", + "dashboard.stats_tags": "Tags uniques", + "dashboard.stats_vaults": "Vaults", + "help.shortcuts_title": "Raccourcis & Astuces" }