diff --git a/inc/class-blocks-animation.php b/inc/class-blocks-animation.php index 614a04b24..f69f2363f 100644 --- a/inc/class-blocks-animation.php +++ b/inc/class-blocks-animation.php @@ -104,6 +104,7 @@ public function enqueue_editor_assets() { ); wp_script_add_data( 'otter-count', 'defer', true ); + wp_set_script_translations( 'otter-count', 'blocks-animation' ); wp_enqueue_script( 'otter-typing', @@ -114,6 +115,7 @@ public function enqueue_editor_assets() { ); wp_script_add_data( 'otter-typing', 'defer', true ); + wp_set_script_translations( 'otter-typing', 'blocks-animation' ); } /** diff --git a/inc/class-blocks-css.php b/inc/class-blocks-css.php index 27a22cbf8..cf684c7ca 100644 --- a/inc/class-blocks-css.php +++ b/inc/class-blocks-css.php @@ -67,6 +67,7 @@ public function enqueue_editor_assets() { $asset_file['version'], true ); + wp_set_script_translations( 'otter-css', 'blocks-css' ); wp_localize_script( 'otter-css',