| @@ -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. |