Skip to content

I18nClient

This component is required if you want to use client features. It allows passing data to the client (always the minimum) for you:

src/layouts/Layout.astro
1
---
2
import I18nClient from "@astrolicious/i18n/components/I18nClient.astro"
3
---
4
<html>
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
<I18NClient />
11
<slot name="head" />
12
</head>
13
<body>
14
<slot />
15
</body>
16
</html>