feature/IO-3499-React-19 - Checkpoint
This commit is contained in:
@@ -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;
|
export default i18n;
|
||||||
|
|||||||
Reference in New Issue
Block a user