Skip to content
Snippets Groups Projects
Commit 5161b588 authored by Viktor Tymchynskyi's avatar Viktor Tymchynskyi
Browse files

MAGETWO-56345: [Github] #5934 Untranslatable string for Authorize.net payment

- Add translation for timeout error message
parent fc7ad0d7
No related merge requests found
......@@ -64,3 +64,4 @@ Debug,Debug
"Minimum Order Total","Minimum Order Total"
"Maximum Order Total","Maximum Order Total"
"Sort Order","Sort Order"
"Sorry, but something went wrong. Please contact the seller.","Sorry, but something went wrong. Please contact the seller."
......@@ -5,15 +5,16 @@
define(
[
'jquery',
'Magento_Payment/js/view/payment/iframe'
'Magento_Payment/js/view/payment/iframe',
'mage/translate'
],
function ($, Component) {
function ($, Component, $t) {
'use strict';
return Component.extend({
defaults: {
template: 'Magento_Authorizenet/payment/authorizenet-directpost',
timeoutMessage: 'Sorry, but something went wrong. Please contact the seller.'
timeoutMessage: $t('Sorry, but something went wrong. Please contact the seller.')
},
placeOrderHandler: null,
validateHandler: null,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment