i18n finished (no content yet)

"/" path is now i18n complete - text, image, favicon are all defined in dictionaries (src/i18n/<lang>.js)
Blog should be too
This commit is contained in:
2024-06-06 12:55:12 +02:00
parent 48c48d145a
commit 92aed66774
14 changed files with 367 additions and 141 deletions

View File

@ -3,7 +3,10 @@ const { title, description, lang, themeOverride } = Astro.props;
import { ViewTransitions } from 'astro:transitions';
import Navbar from "../components/Navbar.astro";
import "../style/index.css";
import { useTranslations } from '../i18n/utils';
//import "../style/globals.css";
const t = useTranslations(lang)
---
<!doctype html>
@ -12,7 +15,7 @@ import "../style/index.css";
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content={description} />
<link rel="shortcut icon" href="/favicon.svg">
<link rel="shortcut icon" href={t("favicon")}>
<title>{title}</title>
<ViewTransitions />
</head>