Skip to content

fix: use right way to get bundle.optimizeTranslationDirective option#3556

Merged
BobbieGoede merged 1 commit intonuxt-modules:mainfrom
rx-837:fix-for-optimizeTranslationDirective-option-warn
Apr 16, 2025
Merged

fix: use right way to get bundle.optimizeTranslationDirective option#3556
BobbieGoede merged 1 commit intonuxt-modules:mainfrom
rx-837:fix-for-optimizeTranslationDirective-option-warn

Conversation

@rx-837
Copy link
Copy Markdown
Contributor

@rx-837 rx-837 commented Apr 16, 2025

📚 Description

As know nuxt have two way to pass options for modules.

The first way is dedicated key at the first level of config.

modules: [
  "@nuxtjs/i18n",
],

i18n: {
  // place options here
},

The second way is to pass the options as the second element of the array.

{
  modules: [
    [
      "@nuxtjs/i18n",
      {
        // place options here
      },
    ],
  ],
}

This PR used correct way to get optimizeTranslationDirective option to suppress warning in stdout.

Copy link
Copy Markdown
Member

@BobbieGoede BobbieGoede left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@BobbieGoede BobbieGoede merged commit 2f778c3 into nuxt-modules:main Apr 16, 2025
6 checks passed
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