diff --git a/.circleci/config.yml b/.circleci/config.yml index ec977b6bda..2901893962 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -256,6 +256,7 @@ jobs: --test-instance $(cat /tmp/workspace/test-instance) create-zip: + resource_class: xlarge docker: - image: cimg/node:18.20.4 auth: @@ -288,8 +289,8 @@ jobs: name: Zip file size sanity check command: | ls -lh /tmp/workspace/planet4-master-theme.zip - if [ $(wc -c - { __('%d min read', 'planet4-blocks').replace('%d', reading_time) } + { + // translators: article reading time + sprintf(__('%d min read', 'planet4-blocks'), reading_time) + } }

diff --git a/assets/src/blocks/Columns/ColumnsEditor.js b/assets/src/blocks/Columns/ColumnsEditor.js index 355232b1bc..84187eea7e 100644 --- a/assets/src/blocks/Columns/ColumnsEditor.js +++ b/assets/src/blocks/Columns/ColumnsEditor.js @@ -8,7 +8,7 @@ const {useSelect} = wp.data; const {InspectorControls, RichText} = wp.blockEditor; const {CheckboxControl, PanelBody, RangeControl} = wp.components; const {useEffect} = wp.element; -const {__} = wp.i18n; +const {__, sprintf} = wp.i18n; const renderEdit = (attributes, toAttribute, setAttributes, isSelected) => { const {columns} = attributes; @@ -56,8 +56,10 @@ const renderEdit = (attributes, toAttribute, setAttributes, isSelected) => { return (
diff --git a/assets/src/blocks/Covers/TakeActionCovers.js b/assets/src/blocks/Covers/TakeActionCovers.js index 9845939bfe..65373bcab9 100644 --- a/assets/src/blocks/Covers/TakeActionCovers.js +++ b/assets/src/blocks/Covers/TakeActionCovers.js @@ -42,6 +42,7 @@ export const TakeActionCovers = ({ data-ga-action="Card" data-ga-label="n/a" href={buttonLink} + // translators: cover title aria-label={sprintf(__('Take action cover, link to %s', 'planet4-blocks'), title)} /> {isExample ? diff --git a/assets/src/blocks/Spreadsheet/SpreadsheetEditor.js b/assets/src/blocks/Spreadsheet/SpreadsheetEditor.js index adfcaf30a5..a9ab971ab0 100644 --- a/assets/src/blocks/Spreadsheet/SpreadsheetEditor.js +++ b/assets/src/blocks/Spreadsheet/SpreadsheetEditor.js @@ -54,20 +54,20 @@ export const SpreadsheetEditor = ({
  • - {/* eslint-disable-next-line no-restricted-syntax */} + {/* eslint-disable-next-line no-restricted-syntax, @wordpress/i18n-no-collapsible-whitespace */} { __(`From Your Google Spreadsheet Table choose File -> Publish on web. No need to choose the output format, any of them will work. A pop-up window will show up, click on the Publish button and then OK when the confirmation message is displayed. Copy the URL that is highlighted and paste it in this block.`, 'planet4-blocks-backend') }
  • - {/* eslint-disable-next-line no-restricted-syntax */} + {/* eslint-disable-next-line no-restricted-syntax, @wordpress/i18n-no-collapsible-whitespace */} { __(`If you make changes to the sheet after publishing then these changes do not always immediately get reflected, even when "Automatically republish when changes are made" is checked.`, 'planet4-blocks-backend') }
  • - {/* eslint-disable-next-line no-restricted-syntax */} + {/* eslint-disable-next-line no-restricted-syntax, @wordpress/i18n-no-collapsible-whitespace */} { __(`You can force an update by unpublishing and republishing the sheet. This will not change the sheet's public url.`, 'planet4-blocks-backend') }
  • diff --git a/assets/src/frontendIndex.js b/assets/src/frontendIndex.js index 21906d4fa9..00610e2987 100644 --- a/assets/src/frontendIndex.js +++ b/assets/src/frontendIndex.js @@ -1,3 +1,6 @@ +// This ESLint error is disabled since 'regenerator-runtime/runtime' has already been added by another package. +// There is no need to explicitly include it in the list of dependencies in the package.json file. +// eslint-disable-next-line import/no-extraneous-dependencies import 'regenerator-runtime/runtime'; import {createRoot} from 'react-dom/client'; diff --git a/assets/src/js/Components/ArchivePicker/ArchivePickerToolbar.js b/assets/src/js/Components/ArchivePicker/ArchivePickerToolbar.js index 969c1c825c..da2466419f 100644 --- a/assets/src/js/Components/ArchivePicker/ArchivePickerToolbar.js +++ b/assets/src/js/Components/ArchivePicker/ArchivePickerToolbar.js @@ -23,9 +23,8 @@ export default function ArchivePickerToolbar() { {!bulkSelect &&

    {__('Greenpeace Media', 'planet4-master-theme-backend')}

    }