From 53c4f63c7472b0fba15b79dc96218f3a45285653 Mon Sep 17 00:00:00 2001 From: Mikael Korpela Date: Wed, 15 Jan 2025 14:13:50 +0200 Subject: [PATCH 1/2] Forms: change copy to sentence case from title case --- .../src/blocks/contact-form/child-blocks.js | 33 ++++++++++--------- .../components/jetpack-field-datepicker.js | 2 +- .../components/jetpack-field-width.js | 4 +-- .../jetpack-manage-responses-settings.js | 4 +-- .../forms/src/blocks/contact-form/edit.js | 16 ++++----- .../forms/src/blocks/contact-form/index.js | 6 ++-- 6 files changed, 34 insertions(+), 31 deletions(-) diff --git a/projects/packages/forms/src/blocks/contact-form/child-blocks.js b/projects/packages/forms/src/blocks/contact-form/child-blocks.js index 5fc34bc761cbc..b4abb4c1016d6 100644 --- a/projects/packages/forms/src/blocks/contact-form/child-blocks.js +++ b/projects/packages/forms/src/blocks/contact-form/child-blocks.js @@ -237,7 +237,10 @@ const multiFieldV1 = fieldType => ( { ...FieldDefaults.attributes, label: { type: 'string', - default: fieldType === 'checkbox' ? 'Choose several options' : 'Choose one option', + default: + fieldType === 'checkbox' + ? __( 'Choose several options', 'jetpack-forms' ) + : __( 'Choose one option', 'jetpack-forms' ), }, }, migrate: attributes => { @@ -341,7 +344,7 @@ export const childBlocks = [ name: 'field-text', settings: { ...FieldDefaults, - title: __( 'Text Input Field', 'jetpack-forms' ), + title: __( 'Text input field', 'jetpack-forms' ), description: __( 'Collect short text responses from site visitors.', 'jetpack-forms' ), icon: renderMaterialIcon( { index: 1, element: ( ( { value, label: `${ optionLabel } (${ example })`, diff --git a/projects/packages/forms/src/blocks/contact-form/components/jetpack-field-width.js b/projects/packages/forms/src/blocks/contact-form/components/jetpack-field-width.js index e56af4a8f2234..1c1098eab2898 100644 --- a/projects/packages/forms/src/blocks/contact-form/components/jetpack-field-width.js +++ b/projects/packages/forms/src/blocks/contact-form/components/jetpack-field-width.js @@ -11,8 +11,8 @@ export default function JetpackFieldWidth( { setAttributes, width } ) { className="jetpack-field-label__width" __nextHasNoMarginBottom={ true } > - { __( 'Field Width', 'jetpack-forms' ) } - + { __( 'Field width', 'jetpack-forms' ) } + { [ 25, 50, 75, 100 ].map( widthValue => { return (