chore(clipboard): simplify toast messages

This commit is contained in:
Elian Doran 2025-05-27 22:00:50 +03:00
parent 4ab297d00f
commit 5a6b310b27
No known key found for this signature in database
2 changed files with 5 additions and 5 deletions

View File

@ -136,9 +136,9 @@ export function copyText(text: string) {
}
if (succeeded) {
toast.showMessage(t("code_block.copy_success"));
toast.showMessage(t("clipboard.copy_success"));
} else {
toast.showError(t("code_block.copy_failed"));
toast.showError(t("clipboard.copy_failed"));
}
}

View File

@ -1779,7 +1779,9 @@
},
"clipboard": {
"cut": "Note(s) have been cut into clipboard.",
"copied": "Note(s) have been copied into clipboard."
"copied": "Note(s) have been copied into clipboard.",
"copy_failed": "Cannot copy to clipboard due to permission issues.",
"copy_success": "Copied to clipboard."
},
"entrypoints": {
"note-revision-created": "Note revision has been created.",
@ -1831,8 +1833,6 @@
"theme_none": "No syntax highlighting",
"theme_group_light": "Light themes",
"theme_group_dark": "Dark themes",
"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_title": "Copy to clipboard"
},
"classic_editor_toolbar": {