refactor(site): english-only, remove i18n machinery

This commit is contained in:
Christian Visintin
2026-06-08 10:16:00 +02:00
parent 203a6da387
commit e381484022
20 changed files with 83 additions and 771 deletions
+5 -8
View File
@@ -1,18 +1,15 @@
---
import { useTranslations, DOCS_URL, type Locale } from "../i18n/ui";
interface Props { locale: Locale; }
const { locale } = Astro.props;
const t = useTranslations(locale);
import { DOCS_URL, GITHUB_URL } from "../consts";
const year = new Date().getFullYear();
---
<footer class="mt-auto border-t border-line bg-mantle">
<div class="mx-auto flex max-w-5xl flex-col items-center gap-2 px-4 py-8 text-sm text-overlay">
<div class="flex gap-5">
<a href="https://github.com/veeso/termscp" class="hover:text-text">GitHub</a>
<a href={GITHUB_URL} class="hover:text-text">GitHub</a>
<a href="https://crates.io/crates/termscp" class="hover:text-text">crates.io</a>
<a href={DOCS_URL} class="hover:text-text">{t("nav.manual")}</a>
<a href="https://ko-fi.com/veeso" class="hover:text-text">{t("footer.support")}</a>
<a href={DOCS_URL} class="hover:text-text">User manual</a>
<a href="https://ko-fi.com/veeso" class="hover:text-text">Support me</a>
</div>
<p>© {year} Christian Visintin · {t("footer.rights")}</p>
<p>© {year} Christian Visintin · Released under the MIT license.</p>
</div>
</footer>