Skip to content

Commit

Permalink
update third param to wp_set_script_translations
Browse files Browse the repository at this point in the history
  • Loading branch information
osmansufy committed Oct 3, 2024
1 parent b1fd6a7 commit d51a47a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/Assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -1087,7 +1087,7 @@ public function register_scripts( $scripts ) {
$version = isset( $script['version'] ) ? $script['version'] : DOKAN_PLUGIN_VERSION;

wp_register_script( $handle, $script['src'], $deps, $version, $in_footer );
wp_set_script_translations( $handle, 'dokan-lite' );
wp_set_script_translations( $handle, 'dokan-lite', plugin_dir_path( DOKAN_FILE ) . 'languages' );
}
}

Expand Down

0 comments on commit d51a47a

Please sign in to comment.