astro native i18n + i18n utils

This commit is contained in:
nico 2024-12-28 11:52:32 +01:00
parent 99ef7634e3
commit b7ce5b7f20
Signed by: Nicolas
SSH key fingerprint: SHA256:ELi8eDeNLl5PTn64G+o2Kx5+XVDfHF5um2tZigfwWkM
16 changed files with 266 additions and 163 deletions

View file

@ -1,8 +1,5 @@
---
// init i18n
import { getLocale } from "astro-i18n-aut";
const locale = getLocale(Astro.url);
const locale = Astro.currentLocale;
// import stuff
import BaseLayout from "../layouts/BaseLayout.astro";