From 9a184d1c7ac03a0fd5af2e7803a6e9a5a209ce73 Mon Sep 17 00:00:00 2001 From: Andrey Antukh <niwi@niwi.nz> Date: Sat, 11 Jan 2020 18:49:03 +0100 Subject: [PATCH] :sparkles: Fix translation text on sidebar layers. --- frontend/resources/locales.json | 6 +++--- frontend/src/uxbox/main/ui/workspace/sidebar/layers.cljs | 7 ++++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/frontend/resources/locales.json b/frontend/resources/locales.json index 447ec5f68..e9473b471 100644 --- a/frontend/resources/locales.json +++ b/frontend/resources/locales.json @@ -272,11 +272,11 @@ "fr" : null } }, - "ds.settings.layers" : { + "workspace.sidebar.layers" : { "used-in" : [ "src/uxbox/main/ui/workspace/sidebar/layers.cljs:260" ], "translations" : { - "en" : null, - "fr" : null + "en" : "Layers", + "fr" : "Couches" } }, "ds.size" : { diff --git a/frontend/src/uxbox/main/ui/workspace/sidebar/layers.cljs b/frontend/src/uxbox/main/ui/workspace/sidebar/layers.cljs index 7be57bfb3..1a6d0a2c2 100644 --- a/frontend/src/uxbox/main/ui/workspace/sidebar/layers.cljs +++ b/frontend/src/uxbox/main/ui/workspace/sidebar/layers.cljs @@ -18,7 +18,7 @@ [uxbox.main.ui.workspace.sortable :refer [use-sortable]] [uxbox.util.data :refer [classnames enumerate]] [uxbox.util.dom :as dom] - [uxbox.util.i18n :refer (tr)])) + [uxbox.util.i18n :as i18n])) (def ^:private shapes-iref (-> (l/key :shapes) @@ -235,7 +235,8 @@ (mf/defc layers-toolbox [{:keys [page] :as props}] - (let [on-click #(st/emit! (dw/toggle-layout-flag :layers)) + (let [tr (i18n/use-translations) + on-click #(st/emit! (dw/toggle-layout-flag :layers)) selected (mf/deref refs/selected-shapes) data (mf/deref refs/workspace-data) @@ -257,7 +258,7 @@ [:div#layers.tool-window [:div.tool-window-bar [:div.tool-window-icon i/layers] - [:span (tr "ds.settings.layers")] + [:span (tr "workspace.sidebar.layers")] ;; [:div.tool-window-close {:on-click on-click} i/close] ] [:div.tool-window-content