Skip to content

Commit 2f778c3

Browse files
authored
fix: use bundle.optimizeTranslationDirective option from merged config (#3556)
1 parent 87d43df commit 2f778c3

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/prepare/options.ts

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

23-
if (
24-
!nuxt.options?._prepare &&
25-
!nuxt.options?.test &&
26-
nuxt.options.i18n?.bundle?.optimizeTranslationDirective == null
27-
) {
23+
if (!nuxt.options?._prepare && !nuxt.options?.test && options.bundle.optimizeTranslationDirective == null) {
2824
logger.warn(
2925
'`bundle.optimizeTranslationDirective` is enabled by default, we recommend disabling this feature as it causes issues and will be deprecated in v10.\nExplicitly setting this option to `true` or `false` disables this warning, for more details see: https://github.com/nuxt-modules/i18n/issues/3238#issuecomment-2672492536'
3026
)

0 commit comments

Comments
 (0)