mirror of
https://github.com/zadam/trilium.git
synced 2026-05-07 06:57:16 +02:00
fix(share): translation not used in template (closes #8722)
This commit is contained in:
@@ -160,7 +160,7 @@ content = content.replaceAll(headingRe, (...match) => {
|
||||
<%- renderSnippets("content:start") %>
|
||||
<h1 id="title"><%= note.title %></h1>
|
||||
<% if (isEmpty && (!note.hasVisibleChildren() && note.type !== "book")) { %>
|
||||
<p>This note has no content.</p>
|
||||
<p><%= t("share_page.no-content") %></p>
|
||||
<% } else { %>
|
||||
<%
|
||||
content = content.replace(/<img /g, `<img alt="${t("share_theme.image_alt")}" loading="lazy" `);
|
||||
|
||||
Reference in New Issue
Block a user