Dev-mode: reload resources on page reload
See original GitHub issueIs your feature request related to a problem? Please describe.
When you develop the app u are usually adding / changing keys in the translation jsons, because of the fact that i18n runs once (at server startup) the change is not reflected in the browser, you need to restart the server for the changes to affect.
Describe the solution you’d like
We can add in the next-i18next middleware a check for NODE_ENV=development
and if so, attach additional middleware that will invoke i18n.reloadResources
.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:14 (11 by maintainers)
Top Results From Across the Web
Dev-mode: reload resources on page reload #214 - GitHub
Dev-mode : reload resources on page reload #214 ... perform the reload work (either the entire Node process or the i18n resources) on...
Read more >How can i make my CSS reload on page refresh? gwt maven
If you want to update your web assets without restarting the DevMode, run mvn war:exploded -Dgwt.compiler.skip . And similarly for resources ...
Read more >How dev mode differs from a production application - Quarkus
In dev mode, Quarkus uses a ClassLoader hierarchy (explained in detail here) that enables the live reload of user code without requiring a...
Read more >Development Mode (aka “devMode” - Apache Struts
When enabled, Struts 2 will reload your resource bundles on every request (meaning you can change your .properties files, save them, and see...
Read more >Supporting Hot Reload - Nuxeo Documentation
Setting up the Dev Mode. Hot reload is currently mainly interesting to ease up development. Enabling it means re-building part of the ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’ve developed
i18next-hmr
in-order to hot reload client & server when translations are changes… check it out :]So, I agree with u that it should not be part of this lib.
If anyone interested with my final solution: