mirror of
https://github.com/penpot/penpot.git
synced 2025-05-31 11:56:12 +02:00
🌐 History, icons and messages i18n
Signed-off-by: mathieu.brunot <mathieu.brunot@monogramm.io>
This commit is contained in:
parent
1d5bfd33d4
commit
5c12bd988d
5 changed files with 30 additions and 18 deletions
|
@ -108,10 +108,10 @@
|
|||
[:ul.history-tabs {}
|
||||
[:li {:on-click show-main
|
||||
:class (when main? "selected")}
|
||||
"History"]
|
||||
(tr "ds.history-versions")]
|
||||
[:li {:on-click show-pinned
|
||||
:class (when pinned? "selected")}
|
||||
"Pinned"]]
|
||||
(tr "ds.pinned-version")]]
|
||||
(if (= section :pinned)
|
||||
(history-pinned-list history)
|
||||
(history-list history))]])))
|
||||
|
@ -131,5 +131,5 @@
|
|||
{:class (when (:deselecting history) "hide-message")}
|
||||
[:span {} (tr "history.alert-message" (or version "00"))
|
||||
[:div.message-action {}
|
||||
[:a.btn-transparent {:on-click on-accept} "Accept"]
|
||||
[:a.btn-transparent {:on-click on-cancel} "Cancel"]]]]))))
|
||||
[:a.btn-transparent {:on-click on-accept} (tr "ds.accept")]
|
||||
[:a.btn-transparent {:on-click on-cancel} (tr "ds.cancel")]]]]))))
|
||||
|
|
|
@ -19,7 +19,8 @@
|
|||
[uxbox.builtins.icons :as i]
|
||||
[rumext.core :as mx :include-macros true]
|
||||
[uxbox.util.dom :as dom]
|
||||
[uxbox.util.data :refer (read-string)]))
|
||||
[uxbox.util.data :refer (read-string)]
|
||||
[uxbox.util.i18n :refer [tr]]))
|
||||
|
||||
;; --- Refs
|
||||
|
||||
|
@ -70,7 +71,7 @@
|
|||
[:div#form-figures.tool-window
|
||||
[:div.tool-window-bar
|
||||
[:div.tool-window-icon i/icon-set]
|
||||
[:span "Icons"]
|
||||
[:span (tr "ds.icons")]
|
||||
[:div.tool-window-close {:on-click on-close} i/close]]
|
||||
[:div.tool-window-content
|
||||
[:div.figures-catalog
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue