diff --git a/app/javascript/entrypoints/application.js b/app/javascript/entrypoints/application.js
index f7d7410ea..6e3ec2bc6 100644
--- a/app/javascript/entrypoints/application.js
+++ b/app/javascript/entrypoints/application.js
@@ -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');
diff --git a/config/locales/en.yml b/config/locales/en.yml
index de1196dbf..d277e4111 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -281,7 +281,7 @@ en:
check_france_connect_html: Have you once logged in with France Connect? If yes, try again with France Connect.
shared:
email_can_take_a_while_html: Please note that this message can take up to 15 minutes to arrive.
- contact_us_if_any_trouble_html: You can contact us through this form if a problem still exists.
+ contact_us_if_any_trouble_html: 'You can contact us through this form if a problem still exists.'
modal:
publish:
title:
diff --git a/config/locales/fr.yml b/config/locales/fr.yml
index 6a0216b80..9c3ce623d 100644
--- a/config/locales/fr.yml
+++ b/config/locales/fr.yml
@@ -279,7 +279,7 @@ fr:
title: "Lien de réinitialisation du mot de passe envoyé"
shared:
email_can_take_a_while_html: "Attention, ce message peut mettre jusqu’à 15 minutes pour arriver."
- contact_us_if_any_trouble_html: "En cas de difficultés, nous restons joignables via ce formulaire."
+ contact_us_if_any_trouble_html: 'En cas de difficultés, nous restons joignables via ce formulaire.'
modal:
publish:
title: