Skip to content

Commit

Permalink
AD-288 Implement Translation Support in Adyen Library for Spartacus S…
Browse files Browse the repository at this point in the history
…torefront - change to translations kept in ts files
  • Loading branch information
pjaneta committed Aug 20, 2024
1 parent 87d8764 commit 3120efe
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 32 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
export const adyenCheckout = {
"adyenCheckout": {
"selectBillingAddress": "Select your billing address",
"selectAddress": "Select address",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// @ts-ignore
import adyenCheckout from './adyen-checkout.json';
// @ts-ignore
import paymentErrors from './payment-errors.json';
import {adyenCheckout} from "./adyen-checkout";
import {paymentErrors} from "./payment-errors";


export const en = {
adyenCheckout,
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
export const paymentErrors = {
"checkout": {
"error": {
"authorization": {
"payment": {
"refused": "The payment is REFUSED.",
"detail": {
"not": {
"found": "The payment is REFUSED because the saved card is removed. Please try an other payment method."
}
}
},
"restricted": {
"card": "The card is restricted."
},
"cvc": {
"declined": "The payment is REFUSED. Please check your Card details."
},
"transaction": {
"not": {
"permitted": "The transaction is not permitted."
}
}
}
}
}
}

0 comments on commit 3120efe

Please sign in to comment.