nuxt / devtools

Unleash Nuxt Developer Experience
https://devtools.nuxt.com
MIT License
2.81k stars 154 forks source link

Incorrect missing lang tag in case of setting up in nuxt.config.ts #636

Open deviladam opened 4 months ago

deviladam commented 4 months ago

🐛 The bug

In the menu Open Graph under the tab Missing Tags. It displays incorrectly as missing lang tag if lang html attribute is set by nuxt.config.ts like:

// nuxt.config.ts
app: {
    head: {
      // ..
      htmlAttrs: {
        lang: 'en',
      },
    }
  }

Open Graph / Missing Tags / lang (location in dev tools) "⚠️lang The primary language of the page to help search engines and browsers understand the content."

🛠️ To reproduce

https://stackblitz.com/edit/nuxt-starter-nvb8xh?file=nuxt.config.ts

🌈 Expected behavior

It should not de displayed as missing lang tag in this case as far as I know. "⚠️lang The primary language of the page to help search engines and browsers understand the content."

ℹ️ Additional context

It works fine when I use useHead. 😊