mirror of
https://github.com/penpot/penpot.git
synced 2025-03-18 10:41:29 -05:00
✨ Fix translation text on sidebar layers.
This commit is contained in:
parent
8dc13aa0d9
commit
9a184d1c7a
2 changed files with 7 additions and 6 deletions
|
@ -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" : {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue