Browse Source

fix: added several internationalizations to the right-click menu

sosuisen 2 năm trước cách đây
mục cha
commit
1cee6f46af
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      src/main/frontend/components/content.cljs

+ 3 - 3
src/main/frontend/components/content.cljs

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