style/content renderer: localize some strings

This commit is contained in:
Adorian Doran 2025-03-12 03:40:56 +02:00
parent b082f95d42
commit ddd2babe21

View File

@ -14,6 +14,7 @@ import { applySingleBlockSyntaxHighlight, applySyntaxHighlight } from "./syntax_
import { loadElkIfNeeded, postprocessMermaidSvg } from "./mermaid.js"; import { loadElkIfNeeded, postprocessMermaidSvg } from "./mermaid.js";
import { normalizeMimeTypeForCKEditor } from "./mime_type_definitions.js"; import { normalizeMimeTypeForCKEditor } from "./mime_type_definitions.js";
import renderDoc from "./doc_renderer.js"; import renderDoc from "./doc_renderer.js";
import { t } from "i18next";
let idCounter = 1; let idCounter = 1;
@ -201,15 +202,15 @@ function renderFile(entity: FNote | FAttachment, type: string, $renderedContent:
// in attachment list // in attachment list
const $downloadButton = $(` const $downloadButton = $(`
<button class="file-download btn btn-primary" type="button"> <button class="file-download btn btn-primary" type="button">
<span class='bx bx-download' ></span> <span class="bx bx-download"></span>
Download ${t("file_properties.download")}
</button> </button>
`); `);
const $openButton = $(` const $openButton = $(`
<button class="file-open btn btn-primary" type="button"> <button class="file-open btn btn-primary" type="button">
<span class='bx bx-link-external' ></span> <span class="bx bx-link-external"></span>
Open ${t("file_properties.open")}
</button> </button>
`); `);