Skip to content

Commit

Permalink
Merge pull request #2934 from woocommerce/PCP-4036-string-translation…
Browse files Browse the repository at this point in the history
…s-not-applied-to-card-fields-on-checkout-block
  • Loading branch information
Narek13 authored Dec 24, 2024
2 parents 4f2cf54 + 0e469db commit 8fea0da
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion modules/ppcp-blocks/src/AdvancedCardPaymentMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,16 @@ public function get_payment_method_script_handles() {
wp_register_script(
'ppcp-advanced-card-checkout-block',
trailingslashit( $this->module_url ) . 'assets/js/advanced-card-checkout-block.js',
array(),
array( 'wp-i18n' ),
$this->version,
true
);

wp_set_script_translations(
'ppcp-advanced-card-checkout-block',
'woocommerce-paypal-payments'
);

return array( 'ppcp-advanced-card-checkout-block' );
}

Expand Down

0 comments on commit 8fea0da

Please sign in to comment.