diff --git a/core/modules/tour/js/tour.es6.js b/core/modules/tour/js/tour.es6.js index 669a82db71..cb2789bf6b 100644 --- a/core/modules/tour/js/tour.es6.js +++ b/core/modules/tour/js/tour.es6.js @@ -146,6 +146,7 @@ const $tour = this._getTour(); this._removeIrrelevantTourItems($tour, this._getDocument()); const that = this; + const close = Drupal.t('close'); if ($tour.find('li').length) { $tour.joyride({ autoStart: true, @@ -154,7 +155,7 @@ }, // HTML segments for tip layout. template: { - link: '×', + link: `×`, button: '', }, }); diff --git a/core/modules/tour/js/tour.js b/core/modules/tour/js/tour.js index afe1b14bd7..9df91ea3bf 100644 --- a/core/modules/tour/js/tour.js +++ b/core/modules/tour/js/tour.js @@ -63,6 +63,7 @@ var $tour = this._getTour(); this._removeIrrelevantTourItems($tour, this._getDocument()); var that = this; + var close = Drupal.t('close'); if ($tour.find('li').length) { $tour.joyride({ autoStart: true, @@ -71,7 +72,7 @@ }, template: { - link: '×', + link: '×', button: '' } });