Open micobarac opened 1 year ago
Start a new pull request in StackBlitz Codeflow.
@micobarac I disagree that the docs are misleading, this property is referring to the app's runtime as in calling the setLang
method and changing the page's lang without the need for a refresh. it's repeated in a lot of places also in the auto-generated module.
This might be a nice feature to add. Have you tried watching these files via webpack?
Angular is not watching transloco .json language files. Maybe I am missing some configuration details? Just to be clear, I am not talking about changing the current language. I am talking about hot reloading application when editing existing language .json file.
Is there an existing issue for this?
Which Transloco package(s) are the source of the bug?
Transloco
Is this a regression?
No
Current behavior
Changing translations in json files doesn't refresh translations in templates.
I thought
reRenderOnLangChange
flag was meant for this functionality, but the documentation seems misleading about this one.I must reload page for changes to become effective.
Expected behavior
When I change translation json file, I expect the translation to be updated inside templates in dev mode.
Please provide a link to a minimal reproduction of the bug
https://stackblitz.com/edit/transloco-example
Transloco Config
Please provide the environment you discovered this bug in
Browser
Additional context
No response
I would like to make a pull request for this bug
No