diff --git a/changelog/fix-8620-fee-types-in-fees-brakedown-tooltip-are-not-internationalised b/changelog/fix-8620-fee-types-in-fees-brakedown-tooltip-are-not-internationalised new file mode 100644 index 00000000000..57528510958 --- /dev/null +++ b/changelog/fix-8620-fee-types-in-fees-brakedown-tooltip-are-not-internationalised @@ -0,0 +1,4 @@ +Significance: patch +Type: fix + +Use translatable strings on the fee breakdown tooltip of the payment settings screen. diff --git a/client/utils/account-fees.tsx b/client/utils/account-fees.tsx index a1c8056f78d..791b727b164 100644 --- a/client/utils/account-fees.tsx +++ b/client/utils/account-fees.tsx @@ -143,7 +143,7 @@ export const formatMethodFeesTooltip = ( return (
-
Base fee
+
{ __( 'Base fee', 'woocommerce-payments' ) }
{ getFeeDescriptionString( accountFees.base, @@ -153,7 +153,12 @@ export const formatMethodFeesTooltip = (
{ hasFees( accountFees.additional ) ? (
-
International payment method fee
+
+ { __( + 'International payment method fee', + 'woocommerce-payments' + ) } +
{ getFeeDescriptionString( accountFees.additional, @@ -166,14 +171,21 @@ export const formatMethodFeesTooltip = ( ) } { hasFees( accountFees.fx ) ? (
-
Currency conversion fee
+
+ { __( + 'Currency conversion fee', + 'woocommerce-payments' + ) } +
{ getFeeDescriptionString( accountFees.fx ) }
) : ( '' ) }
-
Total per transaction
+
+ { __( 'Total per transaction', 'woocommerce-payments' ) } +
{ getFeeDescriptionString( total ) }