Closed
Description
🚀 Feature request
Command (mark with an x
)
- [ ] new
- [ ] build
- [x] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc
Description
When using the new i18n support with CLI v9 (rc.4 at the time of writing), it is possible to run:
ng serve --configuration=fr
with fr
:
"i18n": {
"locales": {
"fr": "src/locale/messages.fr.xlf"
}
},
"fr": {
"localize": ["fr"]
}
This works great, but does not pick up translation changes in messages.fr.xlf
, requiring a stop and restart of ng serve
.
Describe the solution you'd like
It would be nice to have ng serve
watch the files defined in the locales
configuration.
Describe alternatives you've considered
It is possible to stop and restart the server to have the up-to-date translations.