diff --git a/src/main/frontend/components/block.cljs b/src/main/frontend/components/block.cljs index 2bfb17ef1..b33f73997 100644 --- a/src/main/frontend/components/block.cljs +++ b/src/main/frontend/components/block.cljs @@ -313,7 +313,7 @@ (let [image-src (string/replace src #"^assets://" "")] [:.asset-action-bar [:button.asset-action-btn.text-left - {:title (if local? "Show image in folder" "Open image") + {:title (t (if local? :asset/show-in-folder :asset/open-in-browser)) :on-mouse-down util/stop :on-click (fn [e] (util/stop e) @@ -323,7 +323,7 @@ image-src] [:.flex [:button.asset-action-btn - {:title "Delete image" + {:title (t :asset/delete) :on-mouse-down util/stop :on-click (fn [e] @@ -347,7 +347,7 @@ (ui/icon "trash")] [:button.asset-action-btn - {:title "Copy image" + {:title (t :asset/copy) :on-mouse-down util/stop :on-click (fn [e] (util/stop e) @@ -355,7 +355,7 @@ (ui/icon "copy")] [:button.asset-action-btn - {:title "Maximize image" + {:title (t :asset/maximize) :on-mouse-down util/stop :on-click open-lightbox} diff --git a/src/main/frontend/dicts.cljc b/src/main/frontend/dicts.cljc index 62d119577..dcce7bd03 100644 --- a/src/main/frontend/dicts.cljc +++ b/src/main/frontend/dicts.cljc @@ -131,6 +131,11 @@ :draw/more-options "More options" :draw/back-to-logseq "Back to logseq" :text/image "Image" + :asset/show-in-folder "Show image in folder" + :asset/open-in-browser "Open image in browser" + :asset/delete "Delete image" + :asset/copy "Copy image" + :asset/maximize "Maximize image" :asset/confirm-delete "Are you sure you want to delete this {1}?" :asset/physical-delete "Remove the file too (notice it can't be restored)" :content/copy "Copy"