2024-03-19 12:59:26 +01:00
|
|
|
---
|
2024-03-24 21:19:56 +01:00
|
|
|
import { getLocaleByPath } from "astro:i18n";
|
|
|
|
import MainLayout from "../layouts/MainLayout.astro";
|
2024-03-25 14:41:07 +01:00
|
|
|
|
|
|
|
// Don't remove - redirects user to language version for the preffered language
|
|
|
|
if (Astro.preferredLocale) {
|
|
|
|
return Astro.redirect(`/${Astro.preferredLocale}/`);
|
|
|
|
}
|
|
|
|
|
2024-03-19 12:59:26 +01:00
|
|
|
---
|
2024-03-24 21:19:56 +01:00
|
|
|
|
|
|
|
<MainLayout title="sitetitle" description="sitedescription" lang="en">
|
|
|
|
<h1>Welcome</h1>
|
|
|
|
<p>
|
|
|
|
"homeP1"
|
|
|
|
{Astro.url.toString()}
|
|
|
|
{getLocaleByPath("en")}
|
|
|
|
</p>
|
|
|
|
</MainLayout>
|