#Where to set language of html?

2 messages · Page 1 of 1 (latest)

topaz pier
#

Hey there, where I can set the language of my html document?
alá:

<html lang="my-lang">
  ...
</html>
safe vortex
#

Hi, in etry.ssr.tsx

import { renderToStream, type RenderToStreamOptions } from '@builder.io/qwik/server';
import { manifest } from '@qwik-client-manifest';
import Root from './root';

export default function (opts: RenderToStreamOptions) {
  return renderToStream(<Root />, {
    manifest,
    ...opts,
    // Use container attributes to set attributes on the html tag.
    containerAttributes: {
      lang: 'my-lang',
      ...opts.containerAttributes,
    },
  });
}