Skip to content

Commit

Permalink
add wp_localize_script undo dokan-i18n-jed
Browse files Browse the repository at this point in the history
  • Loading branch information
osmansufy committed Sep 25, 2024
1 parent 118f3ac commit 53f5ffe
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions includes/Assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -375,10 +375,11 @@ public function get_scripts() {
'src' => WC()->plugin_url() . '/assets/js/jquery-tiptip/jquery.tipTip' . $suffix . '.js',
'deps' => [ 'jquery' ],
],
// 'dokan-i18n-jed' => [
// 'src' => $asset_url . '/vendors/i18n/jed.js',
// 'deps' => [ 'jquery' ],
// ],
// Remove `dokan-i18n-jed` in next release.
'dokan-i18n-jed' => [
'src' => $asset_url . '/vendors/i18n/jed.js',
'deps' => [ 'jquery', 'wp-i18n' ],
],
'dokan-accounting' => [
'src' => WC()->plugin_url() . '/assets/js/accounting/accounting.min.js',
'deps' => [ 'jquery' ],
Expand Down Expand Up @@ -635,7 +636,10 @@ public function enqueue_front_scripts() {

$localize_data = array_merge( $localize_script, $vue_localize_script );

wp_localize_script( 'dokan-vue-bootstrap', 'dokan', $localize_data );
// Remove `dokan-i18n-jed` in next release.
wp_localize_script( 'dokan-i18n-jed', 'dokan', $localize_data );
wp_localize_script( 'dokan-vue-bootstrap', 'dokan', $localize_data );
wp_localize_script( 'dokan-script', 'dokan', $localize_data );

// localized vendor-registration script
wp_localize_script(
Expand Down

0 comments on commit 53f5ffe

Please sign in to comment.