Corex. ColorPicker. Translation
(Corex v0.1.0-rc.1)
View Source
Translatable strings for Corex.ColorPicker.
Pass translation={%Corex.ColorPicker.Translation{}} to override any field. Omitted fields use gettext defaults (see table).
| Field | Default | Used for |
|---|---|---|
hex | Hex color value | Hex channel input aria-label |
alpha | Alpha (opacity) value | Alpha channel input aria-label |
Partial override example:
translation={%Corex.ColorPicker.Translation{
hex: Corex.Gettext.gettext("Hex code"),
alpha: Corex.Gettext.gettext("Opacity")
}}