mirror of
https://github.com/penpot/penpot.git
synced 2025-01-25 07:58:49 -05:00
♻️ Remove locale translation
This commit is contained in:
parent
7d202cb492
commit
f612d35daf
1 changed files with 5 additions and 6 deletions
|
@ -20,7 +20,7 @@
|
||||||
[app.main.ui.workspace.colorpicker.ramp :refer [ramp-selector]]
|
[app.main.ui.workspace.colorpicker.ramp :refer [ramp-selector]]
|
||||||
[app.util.color :as uc]
|
[app.util.color :as uc]
|
||||||
[app.util.dom :as dom]
|
[app.util.dom :as dom]
|
||||||
[app.util.i18n :as i18n :refer [t]]
|
[app.util.i18n :as i18n :refer [tr]]
|
||||||
[cuerdas.core :as str]
|
[cuerdas.core :as str]
|
||||||
[okulary.core :as l]
|
[okulary.core :as l]
|
||||||
[rumext.alpha :as mf]))
|
[rumext.alpha :as mf]))
|
||||||
|
@ -113,7 +113,6 @@
|
||||||
[{:keys [data disable-gradient disable-opacity on-change on-accept]}]
|
[{:keys [data disable-gradient disable-opacity on-change on-accept]}]
|
||||||
(let [state (mf/use-state (data->state data))
|
(let [state (mf/use-state (data->state data))
|
||||||
active-tab (mf/use-state :ramp #_:harmony #_:hsva)
|
active-tab (mf/use-state :ramp #_:harmony #_:hsva)
|
||||||
locale (mf/deref i18n/locale)
|
|
||||||
|
|
||||||
ref-picker (mf/use-ref)
|
ref-picker (mf/use-ref)
|
||||||
|
|
||||||
|
@ -293,15 +292,15 @@
|
||||||
[:div.colorpicker-tabs
|
[:div.colorpicker-tabs
|
||||||
[:div.colorpicker-tab.tooltip.tooltip-bottom.tooltip-expand
|
[:div.colorpicker-tab.tooltip.tooltip-bottom.tooltip-expand
|
||||||
{:class (when (= @active-tab :ramp) "active")
|
{:class (when (= @active-tab :ramp) "active")
|
||||||
:alt (t locale "workspace.libraries.colors.rgba")
|
:alt (tr "workspace.libraries.colors.rgba")
|
||||||
:on-click (change-tab :ramp)} i/picker-ramp]
|
:on-click (change-tab :ramp)} i/picker-ramp]
|
||||||
[:div.colorpicker-tab.tooltip.tooltip-bottom.tooltip-expand
|
[:div.colorpicker-tab.tooltip.tooltip-bottom.tooltip-expand
|
||||||
{:class (when (= @active-tab :harmony) "active")
|
{:class (when (= @active-tab :harmony) "active")
|
||||||
:alt (t locale "workspace.libraries.colors.rgb-complementary")
|
:alt (tr "workspace.libraries.colors.rgb-complementary")
|
||||||
:on-click (change-tab :harmony)} i/picker-harmony]
|
:on-click (change-tab :harmony)} i/picker-harmony]
|
||||||
[:div.colorpicker-tab.tooltip.tooltip-bottom.tooltip-expand
|
[:div.colorpicker-tab.tooltip.tooltip-bottom.tooltip-expand
|
||||||
{:class (when (= @active-tab :hsva) "active")
|
{:class (when (= @active-tab :hsva) "active")
|
||||||
:alt (t locale "workspace.libraries.colors.hsv")
|
:alt (tr "workspace.libraries.colors.hsv")
|
||||||
:on-click (change-tab :hsva)} i/picker-hsv]]
|
:on-click (change-tab :hsva)} i/picker-hsv]]
|
||||||
|
|
||||||
(if picking-color?
|
(if picking-color?
|
||||||
|
@ -337,7 +336,7 @@
|
||||||
{:on-click (fn []
|
{:on-click (fn []
|
||||||
(on-accept (state->data @state))
|
(on-accept (state->data @state))
|
||||||
(modal/hide!))}
|
(modal/hide!))}
|
||||||
(t locale "workspace.libraries.colors.save-color")]])]]))
|
(tr "workspace.libraries.colors.save-color")]])]]))
|
||||||
|
|
||||||
(defn calculate-position
|
(defn calculate-position
|
||||||
"Calculates the style properties for the given coordinates and position"
|
"Calculates the style properties for the given coordinates and position"
|
||||||
|
|
Loading…
Add table
Reference in a new issue