Skip to content

Commit

Permalink
fix: wp_set_script_translations
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcuzz committed Jan 17, 2024
1 parent 27129dc commit b7c0922
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions includes/wc-vipps-recurring-blocks-support.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ public function get_payment_method_script_handles() {

wp_register_script( $handle, $path, $dependencies, $version, true );

// if ( function_exists( 'wp_set_script_translations' ) ) {
// wp_set_script_translations( $handle, 'woo-vipps-recurring', WC_VIPPS_RECURRING_PLUGIN_PATH . '/languages/' );
// }
if ( function_exists( 'wp_set_script_translations' ) ) {
wp_set_script_translations( $handle, 'woo-vipps-recurring', WC_VIPPS_RECURRING_PLUGIN_PATH . '/languages/' );
}

return [ $handle ];
}
Expand Down

0 comments on commit b7c0922

Please sign in to comment.