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;