From 587a3104db32f10d8c66c9e45fe61205a5c7346b Mon Sep 17 00:00:00 2001 From: Dave Date: Fri, 23 Jan 2026 18:36:00 -0500 Subject: [PATCH] feature/IO-3499-React-19 - Checkpoint --- client/src/translations/i18n.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/client/src/translations/i18n.js b/client/src/translations/i18n.js index 6d4a54336..a6d657695 100644 --- a/client/src/translations/i18n.js +++ b/client/src/translations/i18n.js @@ -38,4 +38,15 @@ i18n } ); +// Enable HMR for translation files in development +if (import.meta.hot) { + import.meta.hot.accept(() => { + // When translation files change, do a full reload + // This is the most reliable approach for i18n updates + if (!import.meta.env.VITE_STOP_RELOAD_ON_HOT_UPDATE) { + window.location.reload(); + } + }); +} + export default i18n;