Skip to content

Commit

Permalink
Added mage/translate component to customers's ajax login
Browse files Browse the repository at this point in the history
  • Loading branch information
ccasciotti committed Mar 16, 2018
1 parent cb0954a commit dfb9f47
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ define([
'jquery',
'mage/storage',
'Magento_Ui/js/model/messageList',
'Magento_Customer/js/customer-data'
], function ($, storage, globalMessageList, customerData) {
'Magento_Customer/js/customer-data',
'mage/translate'
], function ($, storage, globalMessageList, customerData, $t) {
'use strict';

var callbacks = [],
Expand Down Expand Up @@ -48,7 +49,7 @@ define([
}
}).fail(function () {
messageContainer.addErrorMessage({
'message': 'Could not authenticate. Please try again later'
'message': $t('Could not authenticate. Please try again later')
});
callbacks.forEach(function (callback) {
callback(loginData);
Expand Down

0 comments on commit dfb9f47

Please sign in to comment.