Replies: 2 comments
-
I was just about to give up and move on to doing some actual translation work when I saw the comment in the docs version of i18n.ts: When using Turbopack, this will enable HMR for export default getRequestConfig(async ({ locale }) => {
if (!locales.includes(locale as any)) notFound();
return {
messages: (
await (locale === "en"
? // When using Turbopack, this will enable HMR for `en`
import("./messages/en.json")
: import(`./messages/${locale}.json`))
).default,
};
}); Sure enough, |
Beta Was this translation helpful? Give feedback.
0 replies
-
Had the same issue. Moving my message files to the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Similar to reloadOnPrerender in next-i18next.
Beta Was this translation helpful? Give feedback.
All reactions