mirror of
https://github.com/penpot/penpot.git
synced 2026-07-28 00:48:22 +00:00
Add translation strings to recent colors component.
This commit is contained in:
parent
9e72dbb0a0
commit
388947d485
@ -9,4 +9,8 @@
|
|||||||
"ds.standard-title" "STANDARD"
|
"ds.standard-title" "STANDARD"
|
||||||
"ds.your-libraries-title" "YOUR LIBRARIES"
|
"ds.your-libraries-title" "YOUR LIBRARIES"
|
||||||
"ds.num-elements" ["%s element"
|
"ds.num-elements" ["%s element"
|
||||||
"%s elements"]})
|
"%s elements"]
|
||||||
|
|
||||||
|
"ds.recent-colors" "Recent colors"
|
||||||
|
|
||||||
|
})
|
||||||
|
|||||||
@ -2,6 +2,7 @@
|
|||||||
(:require [sablono.core :as html :refer-macros [html]]
|
(:require [sablono.core :as html :refer-macros [html]]
|
||||||
[rum.core :as rum]
|
[rum.core :as rum]
|
||||||
[cats.labs.lens :as l]
|
[cats.labs.lens :as l]
|
||||||
|
[uxbox.locales :refer (tr)]
|
||||||
[uxbox.rstore :as rs]
|
[uxbox.rstore :as rs]
|
||||||
[uxbox.state :as st]
|
[uxbox.state :as st]
|
||||||
[uxbox.data.workspace :as dw]
|
[uxbox.data.workspace :as dw]
|
||||||
@ -53,7 +54,7 @@
|
|||||||
colors (calculate-colors shapes)]
|
colors (calculate-colors shapes)]
|
||||||
(html
|
(html
|
||||||
[:div
|
[:div
|
||||||
[:span "Recent colors"]
|
[:span (tr "ds.recent-colors")]
|
||||||
[:div.row-flex
|
[:div.row-flex
|
||||||
(for [color colors]
|
(for [color colors]
|
||||||
[:span.color-th {:style {:background color}
|
[:span.color-th {:style {:background color}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user