diff --git a/assets/js/src/form_editor/blocks/add_custom_field/add_custom_field.jsx b/assets/js/src/form_editor/blocks/add_custom_field/add_custom_field.jsx index fe5c73e0bb..741f632783 100644 --- a/assets/js/src/form_editor/blocks/add_custom_field/add_custom_field.jsx +++ b/assets/js/src/form_editor/blocks/add_custom_field/add_custom_field.jsx @@ -1,11 +1,12 @@ +import MailPoet from 'mailpoet'; import Icon from './icon.jsx'; import Edit from './edit.jsx'; export const name = 'mailpoet-form/add-custom-field'; export const settings = { - title: 'Create Custom Field', - description: 'Create a new custom field for your subscribers.', + title: MailPoet.I18n.t('blockAddCustomField'), + description: MailPoet.I18n.t('blockAddCustomFieldDescription'), icon: Icon, category: 'custom-fields', attributes: { diff --git a/assets/js/src/form_editor/blocks/add_custom_field/edit.jsx b/assets/js/src/form_editor/blocks/add_custom_field/edit.jsx index 8fcaeabe0a..a7549ca423 100644 --- a/assets/js/src/form_editor/blocks/add_custom_field/edit.jsx +++ b/assets/js/src/form_editor/blocks/add_custom_field/edit.jsx @@ -115,7 +115,7 @@ const AddCustomField = ({ clientId }) => { return ( } - label="New Custom Field" + label={MailPoet.I18n.t('blockAddCustomFieldFormHeading')} > {!isCreating ? ( <> @@ -123,7 +123,7 @@ const AddCustomField = ({ clientId }) => {

{ setFieldSettings(null); @@ -131,7 +131,7 @@ const AddCustomField = ({ clientId }) => { }} />
@@ -149,7 +149,7 @@ const AddCustomField = ({ clientId }) => { createCustomField(data, clientId); }} > - {'Create'} + {MailPoet.I18n.t('blockCreateButton')}
diff --git a/views/form/editor.html b/views/form/editor.html index dcf8d9a2e9..19e87c7c41 100644 --- a/views/form/editor.html +++ b/views/form/editor.html @@ -100,7 +100,13 @@ 'blockCustomHtmlDescription': __('Display custom text or HTML code in your form.'), 'blockCustomHtmlDefault': __('Subscribe to our newsletter and join [mailpoet_subscribers_count] other subscribers.'), 'blockCustomHtmlContentLabel': _x('Custom text', 'Textarea label'), - 'blockCustomHtmlNl2br': __('Automatically add paragraphs') + 'blockCustomHtmlNl2br': __('Automatically add paragraphs'), + 'blockAddCustomField': __('Create Custom Field'), + 'blockAddCustomFieldDescription': __('Create a new custom field for your subscribers.'), + 'blockAddCustomFieldFormHeading': __('New Custom Field.'), + 'blockCreateButton': __('Create'), + 'customFieldName': _x('Field name', 'Label for form field for custom input name'), + 'selectCustomFieldType': _x('Select a field type', 'Label for form field for custom input type') }) %> <% endblock %>