fix: tell to WP wich script contains the translations and your domain

This commit is contained in:
vnmedeiros 2023-01-04 16:34:41 -03:00
parent 3ac06424c6
commit b3cea53c72
1 changed files with 1 additions and 0 deletions

View File

@ -134,6 +134,7 @@ function tainacan_blocks_register_block($block_slug, $options = []) {
$editor_script_deps,
$TAINACAN_VERSION
);
wp_set_script_translations( $block_slug, 'tainacan' );
$register_params['editor_script'] = $block_slug;
// Passes global variables to the blocks editor side