From 375e547d1ce1111bc81befe325daa01cfeb41668 Mon Sep 17 00:00:00 2001 From: Andelf Date: Sat, 20 Aug 2022 12:43:49 +0800 Subject: [PATCH] fix(ui): missing i18n --- src/main/frontend/components/repo.cljs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/frontend/components/repo.cljs b/src/main/frontend/components/repo.cljs index a53d17d975..c9530e257e 100644 --- a/src/main/frontend/components/repo.cljs +++ b/src/main/frontend/components/repo.cljs @@ -37,7 +37,7 @@ repos (util/distinct-by :url repos)] (if (seq repos) [:div#graphs - [:h1.title "All Graphs"] + [:h1.title (t :all-graphs)] [:p.ml-2.opacity-70 "A \"graph\" in Logseq means a local directory."] @@ -49,9 +49,9 @@ (ui/button (t :open-a-directory) :on-click #(page-handler/ls-dir-files! shortcut/refresh!))])] - (for [{:keys [id url] :as repo} repos] + (for [{:keys [url] :as repo} repos] (let [local? (config/local-db? url)] - [:div.flex.justify-between.mb-4 {:key id} + [:div.flex.justify-between.mb-4 {:key (str "id-" url)} (if local? (let [local-dir (config/get-local-dir url) graph-name (text-util/get-graph-name-from-path local-dir)] @@ -71,7 +71,7 @@ {:title "No worries, unlink this graph will clear its cache only, it does not remove your files on the disk." :on-click (fn [] (repo-handler/remove-repo! repo))} - "Unlink"]]]))]] + (t :unlink)]]]))]] (widgets/add-graph)))) (defn refresh-cb []