From 32aec9a3ddb658e86fe6783625b71103b3509c92 Mon Sep 17 00:00:00 2001 From: Alex Florisca Date: Wed, 4 Sep 2024 14:57:41 +0100 Subject: [PATCH] Add text domain to translation string --- modules/ppcp-blocks/resources/js/checkout-block.js | 5 ++++- modules/ppcp-googlepay/resources/js/boot-block.js | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/modules/ppcp-blocks/resources/js/checkout-block.js b/modules/ppcp-blocks/resources/js/checkout-block.js index 7e378f537..a8455b2fd 100644 --- a/modules/ppcp-blocks/resources/js/checkout-block.js +++ b/modules/ppcp-blocks/resources/js/checkout-block.js @@ -776,7 +776,10 @@ if ( block_enabled && config.enabled ) { registerExpressPaymentMethod( { name: `${ config.id }-${ fundingSource }`, title: 'PayPal', - description: __( 'Eligible users will see the PayPal button.' ), + description: __( + 'Eligible users will see the PayPal button.', + 'woocommerce-paypal-payments' + ), gatewayId: 'ppcp-gateway', paymentMethodId: config.id, label: ( diff --git a/modules/ppcp-googlepay/resources/js/boot-block.js b/modules/ppcp-googlepay/resources/js/boot-block.js index 05dc05cfa..6e39350a6 100644 --- a/modules/ppcp-googlepay/resources/js/boot-block.js +++ b/modules/ppcp-googlepay/resources/js/boot-block.js @@ -60,7 +60,10 @@ const features = [ 'products' ]; registerExpressPaymentMethod( { name: buttonData.id, title: `PayPal - ${ buttonData.title }`, - description: __( 'Eligible users will see the PayPal button.' ), + description: __( + 'Eligible users will see the PayPal button.', + 'woocommerce-paypal-payments' + ), gatewayId: 'ppcp-gateway', label:
, content: ,