Skip to content

fix: expose i18n on messages in production#46

Merged
ai merged 1 commit intonanostores:mainfrom
lunarW1TCH:load_translations
Apr 14, 2026
Merged

fix: expose i18n on messages in production#46
ai merged 1 commit intonanostores:mainfrom
lunarW1TCH:load_translations

Conversation

@lunarW1TCH
Copy link
Copy Markdown
Contributor

Quick fix for loadTranslations.
i18n object must be exposed in NODE_ENV === 'production', otherwise translationsLoading called inside of loadTranslations helper fails.

⨯ TypeError: Cannot read properties of undefined (reading 'loading')
    at <unknown> (.next/server/chunks/ssr/_042pc4w._.js:1:91)
    at c (.next/server/chunks/ssr/_042pc4w._.js:3:6748)
    at I (.next/server/chunks/ssr/_0rtv8r-._.js:1:19323) {
  digest: '2416329503'
}

I have immediately noticed it after deploying to vercel.

@ai ai merged commit 9da3161 into nanostores:main Apr 14, 2026
4 checks passed
@ai
Copy link
Copy Markdown
Member

ai commented Apr 14, 2026

Oops, thanks!

@ai
Copy link
Copy Markdown
Member

ai commented Apr 14, 2026

Released in 1.3.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants