We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea510b6 commit 744e949Copy full SHA for 744e949
packages/module/src/module.ts
@@ -195,7 +195,7 @@ declare global {
195
// @ts-expect-error untyped
196
const baseUrl = nuxt.options.i18n?.baseUrl
197
198
- const locale = nuxt.options.i18n?.locales.find(l => l.code === nuxt.options.i18n?.defaultLocale)
+ const locale = nuxt.options.i18n?.locales?.find(l => l.code === nuxt.options.i18n?.defaultLocale)
199
updateSiteConfig({
200
_context: '@nuxtjs/i18n',
201
url: typeof baseUrl === 'string' ? baseUrl : undefined,
0 commit comments