-
-
Notifications
You must be signed in to change notification settings - Fork 198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reload on message file updates #33
Comments
Never mind. I don't know what I changed, but now the server restarts whenever I update the message files. I still need to manually reload the page to see the changes, but that's ok. |
Hi @mattiloh, thank you for giving next-intl a shot and your feedback! 🙂 The messages not updating sounds odd to me. I've just upgraded the example in this repo to the latest Next.js version and I get updated messages when I reload the page. The update mechanism ultimately depends on how you provide your labels. If they're imported in client code statically, I think you'd even get Fast Refresh support. But if they come from |
Yes, that's correct. I found this repo to get page-reloads for these cases: https://github.com/hashicorp/next-remote-watch |
Oh that's nice, thanks for sharing! |
What’s the current recommended way of page reloading when translations change? |
Hi @amannn!
First of all: Great work! I really like the simplicity and flexibility of this lib 👍
I started experimenting with it in a new project today (using
next@10.2.0
) and one thing is bothering me: I need to manually stop and restart the Next.js dev server to make updates on json message files visible. Do you have the same issue in your dev-setup or did you find a way to restart the server automatically?The text was updated successfully, but these errors were encountered: