daaru00 / gridsome-plugin-i18n

Gridsome plugin for i18n
MIT License
53 stars 12 forks source link

Add support for HTML lang attribute #4

Closed daaru00 closed 4 years ago

daaru00 commented 4 years ago

Is your feature request related to a problem? Please describe. HTML lang attribute does not respect the page language.

Describe the solution you'd like Change head html attribute as Gridsome guide specify:

export default function (Vue, { head }) {
  // Add attributes to HTML tag
  head.htmlAttrs = { lang: 'en' }

  // Add attributes to BODY tag
  head.bodyAttrs = { class: 'custom-body-class' }
}