diff --git a/examples/nextjs-swc/src/utils.ts b/examples/nextjs-swc/src/utils.ts index db3c8c628..e87030fd6 100644 --- a/examples/nextjs-swc/src/utils.ts +++ b/examples/nextjs-swc/src/utils.ts @@ -18,7 +18,7 @@ export function useLinguiInit(messages: Messages) { // to avoid calling loadAndActivate for (worst case) each request, but right now that's what we do i18n.loadAndActivate({ locale, messages }) } - if (isClient && i18n.locale === undefined) { + if (isClient && !i18n.locale) { // first client render i18n.loadAndActivate({ locale, messages }) }