PluginProbe
bBlocks – Essential Gutenberg Blocks & Patterns Collection / 2.1.9
bBlocks – Essential Gutenberg Blocks & Patterns Collection v2.1.9
2.1.9 2.1.8 2.1.7 2.1.6 2.1.5 2.1.4 2.1.3 2.1.2 2.1.1 2.1.0 2.0.43 2.0.42 2.0.41 2.0.40 2.0.39 2.0.38 trunk 1.0 1.1 1.2 1.3 1.4 1.5 1.5.1 1.5.2 All 109 releases
← All changes | includes/RegisterBlocks.php +3 -10 2.1.8 → 2.1.9 View file →
@@ -203,18 +203,11 @@
203 203 // B_BLOCKS_DIR_PATH . 'languages'
204 204 // );
205 205 // }
206 206
207 -// The woo-product-grid view.js uses @wordpress/i18n for the aria-live
208 -// add-to-cart status announcements, so its view-script handle needs
209 -// translations registered.
210 -// if ( ! in_array( 'b-blocks/woo-product-grid', $disabledBlocks ) ) {
211 -// wp_set_script_translations(
212 -// 'b-blocks-woo-product-grid-view-script',
213 -// 'b-blocks',
214 -// B_BLOCKS_DIR_PATH . 'languages'
215 -// );
216 -// }
207 +// The woo-product-grid view.js carries no translation runtime: its strings are
208 +// translated in PHP and shipped with the payload, so no script translations are
209 +// registered for it.
217 210
218 211 // The woo-product-carousel view.js uses @wordpress/i18n for slide
219 212 // aria-live announcements and the add-to-cart status region, so its
220 213 // view-script handle needs translations registered.