chore(client): use translations

This commit is contained in:
Elian Doran 2025-05-26 15:40:57 +03:00
parent 612566d9d2
commit 426549a189
No known key found for this signature in database
2 changed files with 3 additions and 1 deletions

View File

@ -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();

View File

@ -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"