Skip to content

Commit 553fdd6

Browse files
committed
fix: surpress autoImport warning if autoDeclare uses default value
1 parent 1633832 commit 553fdd6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/prepare/options.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export function prepareOptions({ debug, logger, options }: I18nNuxtContext, nuxt
2020
)
2121
}
2222

23-
if (options.autoDeclare && nuxt.options.imports.autoImport === false) {
23+
if (nuxt.options.i18n?.autoDeclare && nuxt.options.imports.autoImport === false) {
2424
logger.warn(
2525
'Disabling `autoImports` in Nuxt is not compatible with `autoDeclare`, either enable `autoImports` or disable `autoDeclare`.'
2626
)

0 commit comments

Comments
 (0)