Skip to content

email dev not watching messages files, thus no re-rendering happens on file content change #3412

@warm-tune

Description

@warm-tune

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:

  1. Change messages file content, and update current template - both updates will be displayed
  2. 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

  1. Start the project
  2. Update messages file content
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions