Skip to content

Build your personal knowledge base with Trilium Notes

feat(share): point the share preview tooltip at the static export

Elian Dorand202dbb4d134
diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.json
index c64bc117db..85f7100381 100644
--- a/apps/client/src/translations/en/translation.json
+++ b/apps/client/src/translations/en/translation.json
@@ -3758,7 +3758,7 @@
"save_status_unsaved_tooltip": "There are unsaved changes. They will be saved automatically in a moment.",
"save_status_error_tooltip": "An error occurred while saving the note. If possible, try copying the note content elsewhere and reloading the application.",
"shared_preview": "Share preview",
- "shared_preview_description": "Only this browser can open the shared page, and only while Trilium is open in it. Publishing it for others needs a Trilium server."
+ "shared_preview_description": "Only this browser can open the shared page, and only while Trilium is open in it. To publish it, export the subtree as \"{{- format}}\" and host the files on any web server, or use a Trilium server."
},
"status_bar": {
"language_title": "Change content language",
diff --git a/apps/client/src/widgets/layout/NoteBadges.tsx b/apps/client/src/widgets/layout/NoteBadges.tsx
index ada8c0d3e1..36a46d4c01 100644
--- a/apps/client/src/widgets/layout/NoteBadges.tsx
+++ b/apps/client/src/widgets/layout/NoteBadges.tsx
@@ -88,7 +88,9 @@ function ShareBadge() {
<BadgeWithDropdown
icon={SHARE_BADGES[scope].icon}
text={t(SHARE_BADGES[scope].text)}
- tooltip={scope === "preview" ? t("breadcrumb_badges.shared_preview_description") : undefined}
+ tooltip={scope === "preview"
+ ? t("breadcrumb_badges.shared_preview_description", { format: t("export.format_share_name") })
+ : undefined}
className="share-badge"
>
<FormListItem