Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
chore(clipboard): simplify toast messages
Elian Doran5a6b310b277a
diff --git a/apps/client/src/services/clipboard.ts b/apps/client/src/services/clipboard.tsindex 40354393c9..2da2d1cf39 100644--- a/apps/client/src/services/clipboard.ts+++ b/apps/client/src/services/clipboard.ts@@ -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"));}}diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.jsonindex 7008ed7d83..4d39265d1e 100644--- a/apps/client/src/translations/en/translation.json+++ b/apps/client/src/translations/en/translation.json@@ -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": {