You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
No response
Description
When using Angular with Vite for development, Hot Module Replacement (HMR) works as expected for standard HTML templates. However, if an i18n attribute is present in the template (e.g., <h1 i18n="@@greetings">Title</h1>), editing the template triggers a full page reload instead of a hot update. This negates the benefits of HMR and slows down the development workflow.
Minimal Reproduction
Run commands
ng new my-i18n-app
cd my-i18n-app
ng add @angular/localize
ng serve
Command
serve
Is this a regression?
The previous version in which this bug was not present was
No response
Description
When using Angular with Vite for development, Hot Module Replacement (HMR) works as expected for standard HTML templates. However, if an i18n attribute is present in the template (e.g.,
<h1 i18n="@@greetings">Title</h1>
), editing the template triggers a full page reload instead of a hot update. This negates the benefits of HMR and slows down the development workflow.Minimal Reproduction
In Chrome navigate to
http://localhost:4200
Open the Chrome DevTools Network tab and watch for GET requests for chunk files.
In src/app/app.component.html add
<h1>Hello world!</h1>
HMR is working — only the component is fetched via a GET request.
Now change the same file to include i18n
<h1 i18n="@@greetings">Hello world!</h1>
HMR is not working — a full page refresh is triggered, and the entire app reloads instead of just updating the component.
Exception or Error
Your Environment
Anything else relevant?
No response
The text was updated successfully, but these errors were encountered: