@blocklet/payment-react 1.20.9 → 1.20.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/libs/util.js +2 -0
- package/es/locales/en.js +15 -15
- package/lib/libs/util.js +2 -0
- package/lib/locales/en.js +15 -15
- package/package.json +3 -3
- package/src/libs/util.ts +2 -0
- package/src/locales/en.tsx +15 -15
package/es/libs/util.js
CHANGED
package/es/locales/en.js
CHANGED
|
@@ -102,8 +102,8 @@ export default flat({
|
|
|
102
102
|
know: "I know",
|
|
103
103
|
relatedSubscription: "Subscription",
|
|
104
104
|
connect: {
|
|
105
|
-
defaultScan: "Use following methods to complete this action",
|
|
106
|
-
scan: "Use following methods to complete this {action}",
|
|
105
|
+
defaultScan: "Use the following methods to complete this action",
|
|
106
|
+
scan: "Use the following methods to complete this {action}",
|
|
107
107
|
confirm: "Confirm",
|
|
108
108
|
cancel: "Cancel"
|
|
109
109
|
},
|
|
@@ -153,14 +153,14 @@ export default flat({
|
|
|
153
153
|
},
|
|
154
154
|
inactive: "Donation feature is not enabled",
|
|
155
155
|
enable: "Enable Donation",
|
|
156
|
-
enableSuccess: "
|
|
157
|
-
configPrompt: "
|
|
156
|
+
enableSuccess: "Successfully enabled",
|
|
157
|
+
configPrompt: "The donation feature is enabled. You can configure donation options in Payment Kit",
|
|
158
158
|
configNow: "Configure Now",
|
|
159
159
|
later: "Configure Later",
|
|
160
160
|
configTip: "Configure donation settings in Payment Kit"
|
|
161
161
|
},
|
|
162
162
|
cardPay: "{action} with bank card",
|
|
163
|
-
empty: "
|
|
163
|
+
empty: "Nothing to pay",
|
|
164
164
|
per: "per",
|
|
165
165
|
pay: "Pay {payee}",
|
|
166
166
|
try1: "Try {name}",
|
|
@@ -174,8 +174,8 @@ export default flat({
|
|
|
174
174
|
least: "continue with at least",
|
|
175
175
|
completed: {
|
|
176
176
|
payment: "Thanks for your purchase",
|
|
177
|
-
subscription: "Thanks for
|
|
178
|
-
setup: "Thanks for
|
|
177
|
+
subscription: "Thanks for subscribing",
|
|
178
|
+
setup: "Thanks for subscribing",
|
|
179
179
|
donate: "Thanks for your tip",
|
|
180
180
|
tip: "A payment to {payee} has been completed. You can view the details of this payment in your account."
|
|
181
181
|
},
|
|
@@ -184,7 +184,7 @@ export default flat({
|
|
|
184
184
|
progress: "Progress {progress}%",
|
|
185
185
|
delivered: "Installation completed",
|
|
186
186
|
failed: "Processing failed",
|
|
187
|
-
failedMsg: "An exception occurred during installation. We will automatically process a refund for you. We apologize for the inconvenience
|
|
187
|
+
failedMsg: "An exception occurred during installation. We will automatically process a refund for you. We apologize for the inconvenience. Thank you for your understanding!"
|
|
188
188
|
},
|
|
189
189
|
confirm: {
|
|
190
190
|
withStake: "By confirming, you allow {payee} to charge your account for future payments and, if necessary, slash your stake. You can cancel your subscription or withdraw your stake at any time.",
|
|
@@ -233,14 +233,14 @@ export default flat({
|
|
|
233
233
|
},
|
|
234
234
|
emptyItems: {
|
|
235
235
|
title: "Nothing to show here",
|
|
236
|
-
description: "
|
|
236
|
+
description: "It seems this checkout session is not configured properly"
|
|
237
237
|
},
|
|
238
238
|
orderSummary: "Order Summary",
|
|
239
239
|
paymentDetails: "Payment Details",
|
|
240
240
|
productListTotal: "Includes {total} items",
|
|
241
241
|
connectModal: {
|
|
242
242
|
title: "{action}",
|
|
243
|
-
scan: "Use following methods to complete this payment",
|
|
243
|
+
scan: "Use the following methods to complete this payment",
|
|
244
244
|
confirm: "Confirm",
|
|
245
245
|
cancel: "Cancel"
|
|
246
246
|
},
|
|
@@ -323,7 +323,7 @@ export default flat({
|
|
|
323
323
|
summary: "Summary",
|
|
324
324
|
products: "Products",
|
|
325
325
|
update: "Update Information",
|
|
326
|
-
empty: "
|
|
326
|
+
empty: "It seems you do not have any subscriptions or payments here",
|
|
327
327
|
cancel: {
|
|
328
328
|
button: "Unsubscribe",
|
|
329
329
|
title: "Cancel your subscription",
|
|
@@ -334,7 +334,7 @@ export default flat({
|
|
|
334
334
|
tip: "We would love your feedback, it will help us improve our service",
|
|
335
335
|
too_expensive: "The service is too expensive",
|
|
336
336
|
missing_features: "Features are missing for this service",
|
|
337
|
-
switched_service: "I have switched to alternative service",
|
|
337
|
+
switched_service: "I have switched to an alternative service",
|
|
338
338
|
unused: "I no longer use this service",
|
|
339
339
|
customer_service: "The customer service is poor",
|
|
340
340
|
too_complex: "The service is too complex to use",
|
|
@@ -345,7 +345,7 @@ export default flat({
|
|
|
345
345
|
pastDue: {
|
|
346
346
|
button: "Pay",
|
|
347
347
|
invoices: "Past Due Invoices",
|
|
348
|
-
warning: "Past due invoices need to be paid immediately, otherwise you
|
|
348
|
+
warning: "Past due invoices need to be paid immediately, otherwise you cannot make new purchases anymore.",
|
|
349
349
|
alert: {
|
|
350
350
|
title: "You have unpaid invoices",
|
|
351
351
|
customMessage: "Please pay immediately, otherwise new purchases or subscriptions will be prohibited.",
|
|
@@ -398,7 +398,7 @@ export default flat({
|
|
|
398
398
|
amountApplied: "Applied Credit",
|
|
399
399
|
pay: "Pay this invoice",
|
|
400
400
|
paySuccess: "You have successfully paid the invoice",
|
|
401
|
-
payError: "Failed to
|
|
401
|
+
payError: "Failed to pay the invoice",
|
|
402
402
|
renew: "Renew the subscription",
|
|
403
403
|
renewSuccess: "You have successfully renewed the subscription",
|
|
404
404
|
renewError: "Failed to renew the subscription",
|
|
@@ -426,7 +426,7 @@ export default flat({
|
|
|
426
426
|
viewAll: "View all",
|
|
427
427
|
empty: "There are no subscriptions here",
|
|
428
428
|
changePayment: "Change payment method",
|
|
429
|
-
trialLeft: "
|
|
429
|
+
trialLeft: "Trial Left",
|
|
430
430
|
owner: "Subscription Owner"
|
|
431
431
|
},
|
|
432
432
|
overdue: {
|
package/lib/libs/util.js
CHANGED
package/lib/locales/en.js
CHANGED
|
@@ -109,8 +109,8 @@ module.exports = (0, _flat.default)({
|
|
|
109
109
|
know: "I know",
|
|
110
110
|
relatedSubscription: "Subscription",
|
|
111
111
|
connect: {
|
|
112
|
-
defaultScan: "Use following methods to complete this action",
|
|
113
|
-
scan: "Use following methods to complete this {action}",
|
|
112
|
+
defaultScan: "Use the following methods to complete this action",
|
|
113
|
+
scan: "Use the following methods to complete this {action}",
|
|
114
114
|
confirm: "Confirm",
|
|
115
115
|
cancel: "Cancel"
|
|
116
116
|
},
|
|
@@ -160,14 +160,14 @@ module.exports = (0, _flat.default)({
|
|
|
160
160
|
},
|
|
161
161
|
inactive: "Donation feature is not enabled",
|
|
162
162
|
enable: "Enable Donation",
|
|
163
|
-
enableSuccess: "
|
|
164
|
-
configPrompt: "
|
|
163
|
+
enableSuccess: "Successfully enabled",
|
|
164
|
+
configPrompt: "The donation feature is enabled. You can configure donation options in Payment Kit",
|
|
165
165
|
configNow: "Configure Now",
|
|
166
166
|
later: "Configure Later",
|
|
167
167
|
configTip: "Configure donation settings in Payment Kit"
|
|
168
168
|
},
|
|
169
169
|
cardPay: "{action} with bank card",
|
|
170
|
-
empty: "
|
|
170
|
+
empty: "Nothing to pay",
|
|
171
171
|
per: "per",
|
|
172
172
|
pay: "Pay {payee}",
|
|
173
173
|
try1: "Try {name}",
|
|
@@ -181,8 +181,8 @@ module.exports = (0, _flat.default)({
|
|
|
181
181
|
least: "continue with at least",
|
|
182
182
|
completed: {
|
|
183
183
|
payment: "Thanks for your purchase",
|
|
184
|
-
subscription: "Thanks for
|
|
185
|
-
setup: "Thanks for
|
|
184
|
+
subscription: "Thanks for subscribing",
|
|
185
|
+
setup: "Thanks for subscribing",
|
|
186
186
|
donate: "Thanks for your tip",
|
|
187
187
|
tip: "A payment to {payee} has been completed. You can view the details of this payment in your account."
|
|
188
188
|
},
|
|
@@ -191,7 +191,7 @@ module.exports = (0, _flat.default)({
|
|
|
191
191
|
progress: "Progress {progress}%",
|
|
192
192
|
delivered: "Installation completed",
|
|
193
193
|
failed: "Processing failed",
|
|
194
|
-
failedMsg: "An exception occurred during installation. We will automatically process a refund for you. We apologize for the inconvenience
|
|
194
|
+
failedMsg: "An exception occurred during installation. We will automatically process a refund for you. We apologize for the inconvenience. Thank you for your understanding!"
|
|
195
195
|
},
|
|
196
196
|
confirm: {
|
|
197
197
|
withStake: "By confirming, you allow {payee} to charge your account for future payments and, if necessary, slash your stake. You can cancel your subscription or withdraw your stake at any time.",
|
|
@@ -240,14 +240,14 @@ module.exports = (0, _flat.default)({
|
|
|
240
240
|
},
|
|
241
241
|
emptyItems: {
|
|
242
242
|
title: "Nothing to show here",
|
|
243
|
-
description: "
|
|
243
|
+
description: "It seems this checkout session is not configured properly"
|
|
244
244
|
},
|
|
245
245
|
orderSummary: "Order Summary",
|
|
246
246
|
paymentDetails: "Payment Details",
|
|
247
247
|
productListTotal: "Includes {total} items",
|
|
248
248
|
connectModal: {
|
|
249
249
|
title: "{action}",
|
|
250
|
-
scan: "Use following methods to complete this payment",
|
|
250
|
+
scan: "Use the following methods to complete this payment",
|
|
251
251
|
confirm: "Confirm",
|
|
252
252
|
cancel: "Cancel"
|
|
253
253
|
},
|
|
@@ -330,7 +330,7 @@ module.exports = (0, _flat.default)({
|
|
|
330
330
|
summary: "Summary",
|
|
331
331
|
products: "Products",
|
|
332
332
|
update: "Update Information",
|
|
333
|
-
empty: "
|
|
333
|
+
empty: "It seems you do not have any subscriptions or payments here",
|
|
334
334
|
cancel: {
|
|
335
335
|
button: "Unsubscribe",
|
|
336
336
|
title: "Cancel your subscription",
|
|
@@ -341,7 +341,7 @@ module.exports = (0, _flat.default)({
|
|
|
341
341
|
tip: "We would love your feedback, it will help us improve our service",
|
|
342
342
|
too_expensive: "The service is too expensive",
|
|
343
343
|
missing_features: "Features are missing for this service",
|
|
344
|
-
switched_service: "I have switched to alternative service",
|
|
344
|
+
switched_service: "I have switched to an alternative service",
|
|
345
345
|
unused: "I no longer use this service",
|
|
346
346
|
customer_service: "The customer service is poor",
|
|
347
347
|
too_complex: "The service is too complex to use",
|
|
@@ -352,7 +352,7 @@ module.exports = (0, _flat.default)({
|
|
|
352
352
|
pastDue: {
|
|
353
353
|
button: "Pay",
|
|
354
354
|
invoices: "Past Due Invoices",
|
|
355
|
-
warning: "Past due invoices need to be paid immediately, otherwise you
|
|
355
|
+
warning: "Past due invoices need to be paid immediately, otherwise you cannot make new purchases anymore.",
|
|
356
356
|
alert: {
|
|
357
357
|
title: "You have unpaid invoices",
|
|
358
358
|
customMessage: "Please pay immediately, otherwise new purchases or subscriptions will be prohibited.",
|
|
@@ -405,7 +405,7 @@ module.exports = (0, _flat.default)({
|
|
|
405
405
|
amountApplied: "Applied Credit",
|
|
406
406
|
pay: "Pay this invoice",
|
|
407
407
|
paySuccess: "You have successfully paid the invoice",
|
|
408
|
-
payError: "Failed to
|
|
408
|
+
payError: "Failed to pay the invoice",
|
|
409
409
|
renew: "Renew the subscription",
|
|
410
410
|
renewSuccess: "You have successfully renewed the subscription",
|
|
411
411
|
renewError: "Failed to renew the subscription",
|
|
@@ -433,7 +433,7 @@ module.exports = (0, _flat.default)({
|
|
|
433
433
|
viewAll: "View all",
|
|
434
434
|
empty: "There are no subscriptions here",
|
|
435
435
|
changePayment: "Change payment method",
|
|
436
|
-
trialLeft: "
|
|
436
|
+
trialLeft: "Trial Left",
|
|
437
437
|
owner: "Subscription Owner"
|
|
438
438
|
},
|
|
439
439
|
overdue: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/payment-react",
|
|
3
|
-
"version": "1.20.
|
|
3
|
+
"version": "1.20.11",
|
|
4
4
|
"description": "Reusable react components for payment kit v2",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"@babel/core": "^7.27.4",
|
|
95
95
|
"@babel/preset-env": "^7.27.2",
|
|
96
96
|
"@babel/preset-react": "^7.27.1",
|
|
97
|
-
"@blocklet/payment-types": "1.20.
|
|
97
|
+
"@blocklet/payment-types": "1.20.11",
|
|
98
98
|
"@storybook/addon-essentials": "^7.6.20",
|
|
99
99
|
"@storybook/addon-interactions": "^7.6.20",
|
|
100
100
|
"@storybook/addon-links": "^7.6.20",
|
|
@@ -125,5 +125,5 @@
|
|
|
125
125
|
"vite-plugin-babel": "^1.3.1",
|
|
126
126
|
"vite-plugin-node-polyfills": "^0.23.0"
|
|
127
127
|
},
|
|
128
|
-
"gitHead": "
|
|
128
|
+
"gitHead": "b69becabf1721f6238cf24004537bee1e4ade860"
|
|
129
129
|
}
|
package/src/libs/util.ts
CHANGED
package/src/locales/en.tsx
CHANGED
|
@@ -104,8 +104,8 @@ export default flat({
|
|
|
104
104
|
know: 'I know',
|
|
105
105
|
relatedSubscription: 'Subscription',
|
|
106
106
|
connect: {
|
|
107
|
-
defaultScan: 'Use following methods to complete this action',
|
|
108
|
-
scan: 'Use following methods to complete this {action}',
|
|
107
|
+
defaultScan: 'Use the following methods to complete this action',
|
|
108
|
+
scan: 'Use the following methods to complete this {action}',
|
|
109
109
|
confirm: 'Confirm',
|
|
110
110
|
cancel: 'Cancel',
|
|
111
111
|
},
|
|
@@ -156,14 +156,14 @@ export default flat({
|
|
|
156
156
|
},
|
|
157
157
|
inactive: 'Donation feature is not enabled',
|
|
158
158
|
enable: 'Enable Donation',
|
|
159
|
-
enableSuccess: '
|
|
160
|
-
configPrompt: '
|
|
159
|
+
enableSuccess: 'Successfully enabled',
|
|
160
|
+
configPrompt: 'The donation feature is enabled. You can configure donation options in Payment Kit',
|
|
161
161
|
configNow: 'Configure Now',
|
|
162
162
|
later: 'Configure Later',
|
|
163
163
|
configTip: 'Configure donation settings in Payment Kit',
|
|
164
164
|
},
|
|
165
165
|
cardPay: '{action} with bank card',
|
|
166
|
-
empty: '
|
|
166
|
+
empty: 'Nothing to pay',
|
|
167
167
|
per: 'per',
|
|
168
168
|
pay: 'Pay {payee}',
|
|
169
169
|
try1: 'Try {name}',
|
|
@@ -177,8 +177,8 @@ export default flat({
|
|
|
177
177
|
least: 'continue with at least',
|
|
178
178
|
completed: {
|
|
179
179
|
payment: 'Thanks for your purchase',
|
|
180
|
-
subscription: 'Thanks for
|
|
181
|
-
setup: 'Thanks for
|
|
180
|
+
subscription: 'Thanks for subscribing',
|
|
181
|
+
setup: 'Thanks for subscribing',
|
|
182
182
|
donate: 'Thanks for your tip',
|
|
183
183
|
tip: 'A payment to {payee} has been completed. You can view the details of this payment in your account.',
|
|
184
184
|
},
|
|
@@ -188,7 +188,7 @@ export default flat({
|
|
|
188
188
|
delivered: 'Installation completed',
|
|
189
189
|
failed: 'Processing failed',
|
|
190
190
|
failedMsg:
|
|
191
|
-
'An exception occurred during installation. We will automatically process a refund for you. We apologize for the inconvenience
|
|
191
|
+
'An exception occurred during installation. We will automatically process a refund for you. We apologize for the inconvenience. Thank you for your understanding!',
|
|
192
192
|
},
|
|
193
193
|
confirm: {
|
|
194
194
|
withStake:
|
|
@@ -241,14 +241,14 @@ export default flat({
|
|
|
241
241
|
},
|
|
242
242
|
emptyItems: {
|
|
243
243
|
title: 'Nothing to show here',
|
|
244
|
-
description: '
|
|
244
|
+
description: 'It seems this checkout session is not configured properly',
|
|
245
245
|
},
|
|
246
246
|
orderSummary: 'Order Summary',
|
|
247
247
|
paymentDetails: 'Payment Details',
|
|
248
248
|
productListTotal: 'Includes {total} items',
|
|
249
249
|
connectModal: {
|
|
250
250
|
title: '{action}',
|
|
251
|
-
scan: 'Use following methods to complete this payment',
|
|
251
|
+
scan: 'Use the following methods to complete this payment',
|
|
252
252
|
confirm: 'Confirm',
|
|
253
253
|
cancel: 'Cancel',
|
|
254
254
|
},
|
|
@@ -337,7 +337,7 @@ export default flat({
|
|
|
337
337
|
summary: 'Summary',
|
|
338
338
|
products: 'Products',
|
|
339
339
|
update: 'Update Information',
|
|
340
|
-
empty: '
|
|
340
|
+
empty: 'It seems you do not have any subscriptions or payments here',
|
|
341
341
|
cancel: {
|
|
342
342
|
button: 'Unsubscribe',
|
|
343
343
|
title: 'Cancel your subscription',
|
|
@@ -350,7 +350,7 @@ export default flat({
|
|
|
350
350
|
tip: 'We would love your feedback, it will help us improve our service',
|
|
351
351
|
too_expensive: 'The service is too expensive',
|
|
352
352
|
missing_features: 'Features are missing for this service',
|
|
353
|
-
switched_service: 'I have switched to alternative service',
|
|
353
|
+
switched_service: 'I have switched to an alternative service',
|
|
354
354
|
unused: 'I no longer use this service',
|
|
355
355
|
customer_service: 'The customer service is poor',
|
|
356
356
|
too_complex: 'The service is too complex to use',
|
|
@@ -361,7 +361,7 @@ export default flat({
|
|
|
361
361
|
pastDue: {
|
|
362
362
|
button: 'Pay',
|
|
363
363
|
invoices: 'Past Due Invoices',
|
|
364
|
-
warning: 'Past due invoices need to be paid immediately, otherwise you
|
|
364
|
+
warning: 'Past due invoices need to be paid immediately, otherwise you cannot make new purchases anymore.',
|
|
365
365
|
alert: {
|
|
366
366
|
title: 'You have unpaid invoices',
|
|
367
367
|
customMessage: 'Please pay immediately, otherwise new purchases or subscriptions will be prohibited.',
|
|
@@ -419,7 +419,7 @@ export default flat({
|
|
|
419
419
|
amountApplied: 'Applied Credit',
|
|
420
420
|
pay: 'Pay this invoice',
|
|
421
421
|
paySuccess: 'You have successfully paid the invoice',
|
|
422
|
-
payError: 'Failed to
|
|
422
|
+
payError: 'Failed to pay the invoice',
|
|
423
423
|
renew: 'Renew the subscription',
|
|
424
424
|
renewSuccess: 'You have successfully renewed the subscription',
|
|
425
425
|
renewError: 'Failed to renew the subscription',
|
|
@@ -447,7 +447,7 @@ export default flat({
|
|
|
447
447
|
viewAll: 'View all',
|
|
448
448
|
empty: 'There are no subscriptions here',
|
|
449
449
|
changePayment: 'Change payment method',
|
|
450
|
-
trialLeft: '
|
|
450
|
+
trialLeft: 'Trial Left',
|
|
451
451
|
owner: 'Subscription Owner',
|
|
452
452
|
},
|
|
453
453
|
overdue: {
|