0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-10 08:50:57 -05:00

♻️ Remove locale translation

This commit is contained in:
Andrés Moya 2021-08-12 11:17:31 +02:00
parent 7d202cb492
commit f612d35daf

View file

@ -20,7 +20,7 @@
[app.main.ui.workspace.colorpicker.ramp :refer [ramp-selector]]
[app.util.color :as uc]
[app.util.dom :as dom]
[app.util.i18n :as i18n :refer [t]]
[app.util.i18n :as i18n :refer [tr]]
[cuerdas.core :as str]
[okulary.core :as l]
[rumext.alpha :as mf]))
@ -113,7 +113,6 @@
[{:keys [data disable-gradient disable-opacity on-change on-accept]}]
(let [state (mf/use-state (data->state data))
active-tab (mf/use-state :ramp #_:harmony #_:hsva)
locale (mf/deref i18n/locale)
ref-picker (mf/use-ref)
@ -293,15 +292,15 @@
[:div.colorpicker-tabs
[:div.colorpicker-tab.tooltip.tooltip-bottom.tooltip-expand
{: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]
[:div.colorpicker-tab.tooltip.tooltip-bottom.tooltip-expand
{: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]
[:div.colorpicker-tab.tooltip.tooltip-bottom.tooltip-expand
{: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]]
(if picking-color?
@ -337,7 +336,7 @@
{:on-click (fn []
(on-accept (state->data @state))
(modal/hide!))}
(t locale "workspace.libraries.colors.save-color")]])]]))
(tr "workspace.libraries.colors.save-color")]])]]))
(defn calculate-position
"Calculates the style properties for the given coordinates and position"