fix: added several internationalizations to the right-click menu

This commit is contained in:
sosuisen
2022-12-22 01:47:57 +09:00
committed by Andelf
parent 3411af57fd
commit 1cee6f46af

View File

@@ -187,7 +187,7 @@
{:key "Open in sidebar"
:on-click (fn [_e]
(editor-handler/open-block-in-sidebar! block-id))}
"Open in sidebar"
(t :content/open-in-sidebar)
["⇧" "click"])
[:hr.menu-separator]
@@ -196,14 +196,14 @@
{:key "Copy block ref"
:on-click (fn [_e]
(editor-handler/copy-block-ref! block-id block-ref/->block-ref))}
"Copy block ref"
(t :content/copy-block-ref)
nil)
(ui/menu-link
{:key "Copy block embed"
:on-click (fn [_e]
(editor-handler/copy-block-ref! block-id #(util/format "{{embed ((%s))}}" %)))}
"Copy block embed"
(t :content/copy-block-emebed)
nil)
;; TODO Logseq protocol mobile support