mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
chore(clipboard): simplify toast messages
This commit is contained in:
parent
4ab297d00f
commit
5a6b310b27
@ -136,9 +136,9 @@ export function copyText(text: string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (succeeded) {
|
if (succeeded) {
|
||||||
toast.showMessage(t("code_block.copy_success"));
|
toast.showMessage(t("clipboard.copy_success"));
|
||||||
} else {
|
} else {
|
||||||
toast.showError(t("code_block.copy_failed"));
|
toast.showError(t("clipboard.copy_failed"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1779,7 +1779,9 @@
|
|||||||
},
|
},
|
||||||
"clipboard": {
|
"clipboard": {
|
||||||
"cut": "Note(s) have been cut into 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": {
|
"entrypoints": {
|
||||||
"note-revision-created": "Note revision has been created.",
|
"note-revision-created": "Note revision has been created.",
|
||||||
@ -1831,8 +1833,6 @@
|
|||||||
"theme_none": "No syntax highlighting",
|
"theme_none": "No syntax highlighting",
|
||||||
"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_failed": "The code block could not be copied to the clipboard due to lack of permissions.",
|
|
||||||
"copy_title": "Copy to clipboard"
|
"copy_title": "Copy to clipboard"
|
||||||
},
|
},
|
||||||
"classic_editor_toolbar": {
|
"classic_editor_toolbar": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user