mirror of
https://github.com/zadam/trilium.git
synced 2025-11-10 22:00:33 +08:00
chore(client): use translations
This commit is contained in:
parent
612566d9d2
commit
426549a189
2 changed files with 3 additions and 1 deletions
|
|
@ -36,6 +36,7 @@ export async function formatCodeBlocks($container: JQuery<HTMLElement>) {
|
||||||
export function applyCopyToClipboardButton($codeBlock: JQuery<HTMLElement>) {
|
export function applyCopyToClipboardButton($codeBlock: JQuery<HTMLElement>) {
|
||||||
const $copyButton = $("<button>")
|
const $copyButton = $("<button>")
|
||||||
.addClass("bx component btn tn-tool-button bx-copy copy-button")
|
.addClass("bx component btn tn-tool-button bx-copy copy-button")
|
||||||
|
.attr("title", t("code_block.copy_title"))
|
||||||
.on("click", () => {
|
.on("click", () => {
|
||||||
const text = $codeBlock.text();
|
const text = $codeBlock.text();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1832,7 +1832,8 @@
|
||||||
"theme_group_light": "Light themes",
|
"theme_group_light": "Light themes",
|
||||||
"theme_group_dark": "Dark themes",
|
"theme_group_dark": "Dark themes",
|
||||||
"copy_success": "The code block was copied to clipboard.",
|
"copy_success": "The code block was copied to clipboard.",
|
||||||
"copy_failed": "The code block could not be copied to the clipboard due to lack of permissions."
|
"copy_failed": "The code block could not be copied to the clipboard due to lack of permissions.",
|
||||||
|
"copy_title": "Copy to clipboard"
|
||||||
},
|
},
|
||||||
"classic_editor_toolbar": {
|
"classic_editor_toolbar": {
|
||||||
"title": "Formatting"
|
"title": "Formatting"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue