What versions are you using? (if relevant)
"i18next": "^26.0.6", "i18next-resources-to-backend": "^1.2.1", "react": "19.2.5", "react-dom": "19.2.5", "react-email": "6.0.0", "react-i18next": "17.0.4"
Describe the Bug
Integrated react-i18next for i18n, but discovered that template does not automatically reloaded when message file content updated.
Actually there are two ways how to see changes:
- Change messages file content, and update current template - both updates will be displayed
- Server reload, then browser reload
I assume messages files should be watched, and page should be automatically reloaded the same way when email template is updated.
Is there any workaround as fast solution?
What is affected (leave empty if unsure)
No response
Link to the code that reproduces this issue
https://github.com/resend/react-email-react-i18next-example
To Reproduce
- Start the project
- Update messages file content
- See no changes displayed even with browser page reload
Expected Behavior
Email preview in the browser should be automatically updated whenever messages content of the currently selected locale is changed. So behaviour should be the same as for template content update.
What's your node version? (if relevant)
22.14.0
What versions are you using? (if relevant)
"i18next": "^26.0.6", "i18next-resources-to-backend": "^1.2.1", "react": "19.2.5", "react-dom": "19.2.5", "react-email": "6.0.0", "react-i18next": "17.0.4"
Describe the Bug
Integrated react-i18next for i18n, but discovered that template does not automatically reloaded when message file content updated.
Actually there are two ways how to see changes:
I assume messages files should be watched, and page should be automatically reloaded the same way when email template is updated.
Is there any workaround as fast solution?
What is affected (leave empty if unsure)
No response
Link to the code that reproduces this issue
https://github.com/resend/react-email-react-i18next-example
To Reproduce
Expected Behavior
Email preview in the browser should be automatically updated whenever messages content of the currently selected locale is changed. So behaviour should be the same as for template content update.
What's your node version? (if relevant)
22.14.0