Skip to content
Snippets Groups Projects

Correct support for JS translations

Merged Erick Hitter requested to merge fix/js-translations into master
6 files
+ 24
4
Compare changes
  • Side-by-side
  • Inline
Files
6
@@ -175,5 +175,11 @@ class Block_Editor {
@@ -175,5 +175,11 @@ class Block_Editor {
'metaKey' => WP_REVISIONS_CONTROL_LIMIT_META_KEY,
'metaKey' => WP_REVISIONS_CONTROL_LIMIT_META_KEY,
)
)
);
);
 
 
wp_set_script_translations(
 
$handle,
 
'wp-revisions-control',
 
dirname( __DIR__ ) . '/languages'
 
);
}
}
}
}
Loading