| @@ -65,10 +65,8 @@ | ||
| 65 | 65 | |
| 66 | 66 | wp_localize_script( static::ASSETS_HANDLE, 'elementorStyleguideConfig', [ |
| 67 | 67 | 'activeKitId' => $kit_id, |
| 68 | 68 | ] ); |
| 69 | - | |
| 70 | - wp_set_script_translations( static::ASSETS_HANDLE, 'elementor' ); | |
| 71 | 69 | } |
| 72 | 70 | |
| 73 | 71 | public function enqueue_app_initiator( $is_preview = false ) { |
| 74 | 72 | $dependencies = [ |
| @@ -87,10 +85,8 @@ | ||
| 87 | 85 | $dependencies, |
| 88 | 86 | ELEMENTOR_VERSION, |
| 89 | 87 | true |
| 90 | 88 | ); |
| 91 | - | |
| 92 | - wp_set_script_translations( static::ASSETS_HANDLE . '-app-initiator', 'elementor' ); | |
| 93 | 89 | } |
| 94 | 90 | |
| 95 | 91 | public function enqueue_styles() { |
| 96 | 92 | wp_enqueue_style( |
| @@ -111,9 +107,9 @@ | ||
| 111 | 107 | * Add the Enable Styleguide Preview controls to Global Colors and Global Fonts. |
| 112 | 108 | * |
| 113 | 109 | * @param $element |
| 114 | 110 | * @param string $section_id |
| 115 | - * @param array $args | |
| 111 | + * @param array $args | |
| 116 | 112 | */ |
| 117 | 113 | public function add_styleguide_enable_controls( $element, $section_id, $args ) { |
| 118 | 114 | if ( 'kit' !== $element->get_name() || ! in_array( $section_id, [ 'section_global_colors', 'section_text_style' ] ) ) { |
| 119 | 115 | return; |