title: Setting the language attribute when using i18n and Nuxt?
body: <p>With Nuxt, you can set the language HTML attribute inside the <strong>nuxt.config.js</strong> file like so:</p>
  
  <pre><code>module.exports = {
    head: {
      htmlAttrs: {
        lang: 'en-GB',
  },
  ... etc etc
  </code></pre>
  
  <p>However, what should you do if you have a multi-language app? Is there any way to set the language attribute based on the locale?</p>
  
  <p>I thought that maybe <code>document.documentElement.setSttribute('lang', 'language-code')</code> would work, but as nuxt is rendered server side, it doesn't seem to have access to the documentElement object.</p>
  
  <p>Thanks</p>