Adds wp_set_script_translations to role editor js file.

This commit is contained in:
mateuswetah 2020-06-17 12:50:12 -03:00
parent 05440ede33
commit b195e2af3f
1 changed files with 1 additions and 0 deletions

View File

@ -104,6 +104,7 @@ class Admin {
global $TAINACAN_BASE_URL;
wp_enqueue_script( 'tainacan-roles', $TAINACAN_BASE_URL . '/assets/js/roles.js', ['underscore', 'wp-i18n'], TAINACAN_VERSION, true );
wp_set_script_translations('tainacan-roles', 'tainacan');
$settings = $this->get_admin_js_localization_params();
wp_localize_script( 'tainacan-roles', 'tainacan_plugin', $settings );