From 7818221e08b65f96731022a27033410f1253540d Mon Sep 17 00:00:00 2001 From: Carlos Garcia Date: Mon, 17 Jan 2022 13:31:23 +0100 Subject: [PATCH 1/2] Translate color settings strings --- .../src/mobile/color-settings/utils.native.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/packages/components/src/mobile/color-settings/utils.native.js b/packages/components/src/mobile/color-settings/utils.native.js index a49da82b08008..c18a6503e5973 100644 --- a/packages/components/src/mobile/color-settings/utils.native.js +++ b/packages/components/src/mobile/color-settings/utils.native.js @@ -1,11 +1,16 @@ +/** + * WordPress dependencies + */ +import { __ } from '@wordpress/i18n'; + const gradients = { linear: 'linear-gradient', radial: 'radial-gradient', }; const gradientOptions = [ - { label: 'Linear', value: gradients.linear }, - { label: 'Radial', value: gradients.radial }, + { label: __( 'Linear' ), value: gradients.linear }, + { label: __( 'Radial' ), value: gradients.radial }, ]; const getGradientType = ( color ) => { @@ -23,7 +28,7 @@ export const colorsUtils = { picker: 'Picker', palette: 'Palette', }, - segments: [ 'Solid', 'Gradient' ], + segments: [ __( 'Solid' ), __( 'Gradient' ) ], gradients, gradientOptions, getGradientType, From 726264362d2a01ff0b12b20560348c68e7b38833 Mon Sep 17 00:00:00 2001 From: Carlos Garcia Date: Mon, 17 Jan 2022 16:14:07 +0100 Subject: [PATCH 2/2] Update react-native-editor changelog --- packages/react-native-editor/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native-editor/CHANGELOG.md b/packages/react-native-editor/CHANGELOG.md index 6d58d132f043e..12555c5cca2ce 100644 --- a/packages/react-native-editor/CHANGELOG.md +++ b/packages/react-native-editor/CHANGELOG.md @@ -11,9 +11,9 @@ For each user feature we should also add a importance categorization label to i ## Unreleased - [**] Fix content justification attribute in Buttons block [#37887] - - [*] Hide help button from Unsupported Block Editor. [#37221] - [*] Add contrast checker to text-based blocks [#34902] +- [*] Fix missing translations of color settings [#38026] ## 1.69.0 - [*] Give multi-line block names central alignment in inserter [#37185]