2022-01-12 06:46:33 +00:00
/* eslint-disable max-len */
/ * *
* External dependencies
* /
2022-09-23 12:36:12 +00:00
import { __ , _n , sprintf } from '@wordpress/i18n' ;
2022-01-12 06:46:33 +00:00
import { createInterpolateElement } from '@wordpress/element' ;
export default {
2023-06-16 14:32:58 +00:00
noThanks : __ ( 'No thanks' , 'woocommerce' ) ,
2024-04-25 13:24:05 +00:00
heading : ( firstName? : string ) = >
sprintf (
/* translators: %s: first name of the merchant, if it exists. */
__ (
'Hi%s, run your business and manage your payments all in one place, with no setup costs or monthly fees.' ,
'woocommerce'
) ,
firstName ? ` ${ firstName } ` : ''
) ,
2023-06-16 14:32:58 +00:00
limitedTimeOffer : __ ( 'Limited time offer' , 'woocommerce' ) ,
TosAndPp : createInterpolateElement (
2022-08-17 09:11:51 +00:00
__ (
2024-04-25 13:24:05 +00:00
'By using WooPayments you agree to our <a1>Terms of Service</a2> and acknowledge that you have read our <a2>Privacy Policy</a2>. Discount will be applied to payments processed via WooPayments upon completion of installation, setup, and connection. ' ,
'woocommerce'
) ,
{
a1 : (
// eslint-disable-next-line jsx-a11y/anchor-has-content
< a
href = "https://wordpress.com/tos"
target = "_blank"
rel = "noopener noreferrer"
/ >
) ,
a2 : (
// eslint-disable-next-line jsx-a11y/anchor-has-content
< a
href = "https://automattic.com/privacy/"
target = "_blank"
rel = "noopener noreferrer"
/ >
) ,
}
) ,
TosAndPpWooPay : createInterpolateElement (
__ (
'By using WooPayments you agree to our <a1>Terms of Service</a2> (including WooPay <a3>merchant terms</a3>) and acknowledge that you have read our <a2>Privacy Policy</a2>. Discount will be applied to payments processed via WooPayments upon completion of installation, setup, and connection. ' ,
2023-08-08 02:17:59 +00:00
'woocommerce'
) ,
{
a1 : (
// eslint-disable-next-line jsx-a11y/anchor-has-content
< a
href = "https://wordpress.com/tos"
target = "_blank"
rel = "noopener noreferrer"
/ >
) ,
a2 : (
// eslint-disable-next-line jsx-a11y/anchor-has-content
< a
href = "https://automattic.com/privacy/"
target = "_blank"
rel = "noopener noreferrer"
/ >
) ,
2024-04-25 13:24:05 +00:00
a3 : (
// eslint-disable-next-line jsx-a11y/anchor-has-content
< a
href = "https://wordpress.com/tos/#more-woopay-specifically"
target = "_blank"
rel = "noopener noreferrer"
/ >
) ,
2023-08-08 02:17:59 +00:00
}
) ,
2023-06-16 14:32:58 +00:00
termsAndConditions : ( url : string ) = >
createInterpolateElement (
2022-01-12 06:46:33 +00:00
__ (
2023-06-16 14:32:58 +00:00
'*See <a>Terms and Conditions</a> for details.' ,
2022-03-30 09:00:04 +00:00
'woocommerce'
2022-01-12 06:46:33 +00:00
) ,
{
a : (
// eslint-disable-next-line jsx-a11y/anchor-has-content
2023-06-16 14:32:58 +00:00
< a href = { url } target = "_blank" rel = "noopener noreferrer" / >
2022-01-12 06:46:33 +00:00
) ,
}
) ,
2023-06-16 14:32:58 +00:00
paymentOptions : __ (
'WooPayments is pre-integrated with all popular payment options' ,
'woocommerce'
) ,
2024-04-25 13:24:05 +00:00
andMore : __ ( '& more' , 'woocommerce' ) ,
2023-06-16 14:32:58 +00:00
learnMore : __ ( 'Learn more' , 'woocommerce' ) ,
survey : {
title : __ ( 'No thanks, I don’ t want WooPayments' , 'woocommerce' ) ,
intro : __ (
'Note that the extension hasn’ t been installed, this will simply remove WooPayments from the navigation. Please take a moment to tell us why you’ d like to dismiss WooPayments.' ,
2022-03-30 09:00:04 +00:00
'woocommerce'
2022-01-12 06:46:33 +00:00
) ,
2023-06-16 14:32:58 +00:00
question : __ (
'Why would you like to dismiss the new payments experience?' ,
2022-03-30 09:00:04 +00:00
'woocommerce'
2022-01-12 06:46:33 +00:00
) ,
2023-06-16 14:32:58 +00:00
happyLabel : __ (
'I’ m already happy with my payments setup' ,
2022-03-30 09:00:04 +00:00
'woocommerce'
2022-01-12 06:46:33 +00:00
) ,
2023-06-16 14:32:58 +00:00
installLabel : __ (
'I don’ t want to install another plugin' ,
2022-03-30 09:00:04 +00:00
'woocommerce'
2022-01-12 06:46:33 +00:00
) ,
2023-06-16 14:32:58 +00:00
moreInfoLabel : __ (
'I need more information about WooPayments' ,
2022-03-30 09:00:04 +00:00
'woocommerce'
2022-01-12 06:46:33 +00:00
) ,
2023-06-16 14:32:58 +00:00
anotherTimeLabel : __ (
'I’ m open to installing it another time' ,
2022-03-30 09:00:04 +00:00
'woocommerce'
2022-01-12 06:46:33 +00:00
) ,
2023-06-16 14:32:58 +00:00
somethingElseLabel : __ (
'It’ s something else (Please share below)' ,
2022-03-30 09:00:04 +00:00
'woocommerce'
2022-01-12 06:46:33 +00:00
) ,
2023-06-16 14:32:58 +00:00
commentsLabel : __ ( 'Comments (Optional)' , 'woocommerce' ) ,
cancelButton : __ ( 'Just dismiss WooPayments' , 'woocommerce' ) ,
submitButton : __ ( 'Dismiss and send feedback' , 'woocommerce' ) ,
} ,
faq : {
haveQuestions : __ ( 'Have questions?' , 'woocommerce' ) ,
2022-03-30 09:00:04 +00:00
getInTouch : __ ( 'Get in touch' , 'woocommerce' ) ,
2022-01-12 06:46:33 +00:00
} ,
2022-09-23 12:36:12 +00:00
apms : {
addMoreWaysToPay : __ (
'Add more ways for buyers to pay' ,
'woocommerce'
) ,
seeMore : __ ( 'See more' , 'woocommerce' ) ,
paypal : {
title : __ ( 'PayPal Payments' , 'woocommerce' ) ,
description : __ (
2023-06-16 14:32:58 +00:00
'Enable PayPal Payments alongside WooPayments. Give your customers another way to pay safely and conveniently via PayPal, PayLater, and Venmo.' ,
2022-09-23 12:36:12 +00:00
'woocommerce'
) ,
} ,
amazonpay : {
title : __ ( 'Amazon Pay' , 'woocommerce' ) ,
description : __ (
2023-06-16 14:32:58 +00:00
'Enable Amazon Pay alongside WooPayments and give buyers the ability to pay via Amazon Pay. Transactions take place via Amazon embedded widgets, so the buyer never leaves your site.' ,
2022-09-23 12:36:12 +00:00
'woocommerce'
) ,
} ,
klarna : {
title : __ ( 'Klarna' , 'woocommerce' ) ,
description : __ (
2023-06-16 14:32:58 +00:00
'Enable Klarna alongside WooPayments. With Klarna Payments buyers can choose the payment installment option they want, Pay Now, Pay Later, or Slice It. No credit card numbers, no passwords, no worries.' ,
2022-09-23 12:36:12 +00:00
'woocommerce'
) ,
} ,
affirm : {
title : __ ( 'Affirm' , 'woocommerce' ) ,
description : __ (
2023-06-16 14:32:58 +00:00
'Enable Affirm alongside WooPayments and give buyers the ability to pick the payment option that works for them and their budget — from 4 interest-free payments every 2 weeks to monthly installments.' ,
2022-09-23 12:36:12 +00:00
'woocommerce'
) ,
} ,
installText : ( extensionsString : string ) = > {
const extensionsNumber = extensionsString . split ( ', ' ) . length ;
return createInterpolateElement (
sprintf (
/* translators: %s = names of the installed extensions */
_n (
2023-06-16 14:32:58 +00:00
'Installing <strong>WooPayments</strong> will automatically activate <strong>%s</strong> extension in your store.' ,
'Installing <strong>WooPayments</strong> will automatically activate <strong>%s</strong> extensions in your store.' ,
2022-09-23 12:36:12 +00:00
extensionsNumber ,
'woocommerce'
) ,
extensionsString
) ,
{
strong : < strong / > ,
}
) ;
} ,
installTextPost : __ ( 'extension in your store.' , 'woocommerce' ) ,
} ,
2022-01-12 06:46:33 +00:00
} ;