next-translate icon indicating copy to clipboard operation
next-translate copied to clipboard

Page is not refreshed in development after change in translation files

Open SpaceK33z opened this issue 3 years ago • 4 comments

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.

SpaceK33z avatar Dec 17 '20 13:12 SpaceK33z

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 !

aralroca avatar Dec 17 '20 13:12 aralroca

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.

aralroca avatar Dec 18 '20 12:12 aralroca

I can confirm this issue.

vishalvijay avatar Feb 01 '21 11:02 vishalvijay

Any update on this. I would love if content changes didn't require a refresh.

SimplyComplexable avatar Jan 12 '22 18:01 SimplyComplexable