next-translate
next-translate copied to clipboard
Page is not refreshed in development after change in translation files
When I change a translation in e.g. locales/en/common.json
, Next.js detects a change, compiles again and in the browser console shows "[Fast Refresh] done".
However the translation is not actually fast refreshed, only after a manual page refresh it changes. I'd expect it to change without a refresh.
By the way, really great package! Love how easy it is to get started and how small it is.
I'm not sure how fast-refresh works, I'll have to investigate. But the truth is that it would be good if the change was automatic reflected without having to refresh. Thanks to report it !
I guess is related to https://github.com/vercel/next.js/discussions/15521 fast refresh doesn't work on getStaticProps (where the translations are loaded). Let's see if we can find a solution.
I can confirm this issue.
Any update on this. I would love if content changes didn't require a refresh.