nuxt / devtools

Unleash Nuxt Developer Experience

Home Page:https://devtools.nuxt.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

deviladam opened this issue · comments

🐛 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. 😊