Merge pull request #7742 from mfo/US/fix-dsfr-ie11

feat(DSFR.ie11): enable legacy mode with our own packaging system
This commit is contained in:
mfo 2022-09-07 17:47:33 +02:00 committed by GitHub
commit aa7a25712f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 2 deletions

View file

@ -65,5 +65,12 @@ Turbo.session.drive = false;
// Expose globals
window.DS = window.DS || DS;
// enable legacy mode of DSFR when vite is not detectde as modern browser
window.addEventListener('load', function () {
if (!window.__vite_is_modern_browser) {
window.dsfr.internals.legacy.setLegacy();
}
});
import('../shared/track/matomo');
import('../shared/track/sentry');

View file

@ -281,7 +281,7 @@ en:
check_france_connect_html: Have you once logged in with France Connect? If yes, <a href=\"%{href}\">try again with France Connect</a>.
shared:
email_can_take_a_while_html: <strong>Please note</strong> that this message can take up to 15 minutes to arrive.
contact_us_if_any_trouble_html: You can contact us <a href=\"%{href}\">through this form</a> if a problem still exists.
contact_us_if_any_trouble_html: 'You can contact us <a href="%{href}">through this form</a> if a problem still exists.'
modal:
publish:
title:

View file

@ -279,7 +279,7 @@ fr:
title: "Lien de réinitialisation du mot de passe envoyé"
shared:
email_can_take_a_while_html: "<strong>Attention</strong>, ce message peut mettre jusquà <strong>15 minutes</strong> pour arriver."
contact_us_if_any_trouble_html: "En cas de difficultés, nous restons joignables <a href=\"%{href}\">via ce formulaire</a>."
contact_us_if_any_trouble_html: 'En cas de difficultés, nous restons joignables <a href="%{href}">via ce formulaire</a>.'
modal:
publish:
title: