diff --git a/projects/adyen-payments/src/lib/assets/translations/en/adyen-checkout.json b/projects/adyen-payments/src/lib/assets/translations/en/adyen-checkout.ts similarity index 93% rename from projects/adyen-payments/src/lib/assets/translations/en/adyen-checkout.json rename to projects/adyen-payments/src/lib/assets/translations/en/adyen-checkout.ts index b2549b6..0eaf872 100644 --- a/projects/adyen-payments/src/lib/assets/translations/en/adyen-checkout.json +++ b/projects/adyen-payments/src/lib/assets/translations/en/adyen-checkout.ts @@ -1,4 +1,4 @@ -{ +export const adyenCheckout = { "adyenCheckout": { "selectBillingAddress": "Select your billing address", "selectAddress": "Select address", diff --git a/projects/adyen-payments/src/lib/assets/translations/en/index.ts b/projects/adyen-payments/src/lib/assets/translations/en/index.ts index cbf1454..7e9986c 100644 --- a/projects/adyen-payments/src/lib/assets/translations/en/index.ts +++ b/projects/adyen-payments/src/lib/assets/translations/en/index.ts @@ -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, diff --git a/projects/adyen-payments/src/lib/assets/translations/en/payment-errors.json b/projects/adyen-payments/src/lib/assets/translations/en/payment-errors.json deleted file mode 100644 index e6f25e9..0000000 --- a/projects/adyen-payments/src/lib/assets/translations/en/payment-errors.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "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." - } - } - } - } - } -} diff --git a/projects/adyen-payments/src/lib/assets/translations/en/payment-errors.ts b/projects/adyen-payments/src/lib/assets/translations/en/payment-errors.ts new file mode 100644 index 0000000..1d4aa66 --- /dev/null +++ b/projects/adyen-payments/src/lib/assets/translations/en/payment-errors.ts @@ -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." + } + } + } + } +} +}