diff --git a/assets/js/app/confirmation.js b/assets/js/app/confirmation.js index d0ccf7851..db1f53aba 100644 --- a/assets/js/app/confirmation.js +++ b/assets/js/app/confirmation.js @@ -1,6 +1,18 @@ import bootbox from 'bootbox'; import $ from 'jquery'; +let bootboxDefaults = { + locale: 'en', +}; + +bootbox.setDefaults(bootboxDefaults); + +let locale = $('html').attr('lang'); + +if (locale) { + bootbox.setLocale(locale); +} + $('*[data-confirmation]').on('click', function() { const thisElem = $(this); const thisHref = $(this).attr('href'); diff --git a/templates/_base/layout.html.twig b/templates/_base/layout.html.twig index 0b2711fce..302e393a3 100644 --- a/templates/_base/layout.html.twig +++ b/templates/_base/layout.html.twig @@ -1,7 +1,7 @@ {# Check if aside has value and set hasAside variable #} {% set hasAside = block('aside')|trim is not empty ? true : false %} - +