getHtmlAttrs
Having a website in a given locale require a few attributes on the html
element. You can get those
automatically through the getHtmlAttrs
utility!
1---2import { getHtmlAttrs } from "i18n:astro"3---4<html {...getHtmlAttrs()}>5<head>6 <meta charset="utf-8" />7 <link rel="icon" type="image/svg+xml" href="/favicon.svg" />8 <meta name="viewport" content="width=device-width" />9 <meta name="generator" content={Astro.generator} />10 <slot name="head" />11</head>12<body>13 <slot />14</body>15</html>