Skip to content

Commit

Permalink
Added locale and error message translations
Browse files Browse the repository at this point in the history
  • Loading branch information
L3RAZ committed Dec 4, 2024
1 parent 2ef75a5 commit 138a19f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ps_checkout.php
Original file line number Diff line number Diff line change
Expand Up @@ -1018,6 +1018,7 @@ public function hookActionFrontControllerSetMedia()

Media::addJsDef([
$this->name . 'Version' => $version->getSemVersion(),
$this->name . 'Locale' => $this->context->language->iso_code,
$this->name . 'AutoRenderDisabled' => (bool) Configuration::get('PS_CHECKOUT_AUTO_RENDER_DISABLED'),
$this->name . 'LoaderImage' => $this->getPathUri() . 'views/img/loader.svg',
$this->name . 'PayPalButtonConfiguration' => $payPalConfiguration->getButtonConfiguration(),
Expand Down Expand Up @@ -1121,6 +1122,8 @@ public function hookActionFrontControllerSetMedia()
'checkout.payment.token.delete.modal.content' => $this->l('The following payment method will be deleted from your account:'),
'checkout.payment.token.delete.modal.confirm-button' => $this->l('Delete payment method'),
'checkout.payment.loader.processing-request' => $this->l('Please wait, we are processing your request'),
'APPLE_PAY_MERCHANT_SESSION_VALIDATION_ERROR' => $this->l('We’re unable to process your Apple Pay payment at the moment. This could be due to an issue verifying the payment setup for this website. Please try again later or choose a different payment method.'),
'APPROVE_APPLE_PAY_VALIDATION_ERROR' => $this->l('We encountered an issue while processing your Apple Pay payment. Please verify your order details and try again, or use a different payment method.')
],
]);

Expand Down

0 comments on commit 138a19f

Please sign in to comment.