Skip to content

Commit 52c7344

Browse files
committed
load translations for the editor script
1 parent 9b8fb22 commit 52c7344

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

includes/Gutenberg/SharedBlocksAttributes.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ public function register_editor_assets(): void {
9999
true
100100
);
101101

102+
// Load translations.
103+
wp_set_script_translations( self::SHARED_BLOCK_SCRIPT_HANDLE, 'multisite-shared-blocks' );
104+
102105
// Register additional configuration data for the script to be print before the script tag.
103106
wp_add_inline_script(
104107
self::SHARED_BLOCK_SCRIPT_HANDLE,

0 commit comments

Comments
 (0)