mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 15:19:01 +02:00
style/content renderer: localize some strings
This commit is contained in:
parent
b082f95d42
commit
ddd2babe21
@ -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>
|
||||||
`);
|
`);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user