From b4ef1a0d288565f744bf754af456c4f60da99ca7 Mon Sep 17 00:00:00 2001 From: Ariel Costas Guerrero Date: Mon, 21 Apr 2025 22:54:15 +0200 Subject: Refactor localization: remove i18n support and update layouts to use static text --- src/layouts/HomePageLayout.astro | 38 +++++++++++++++++++++++--------------- 1 file changed, 23 insertions(+), 15 deletions(-) (limited to 'src/layouts/HomePageLayout.astro') diff --git a/src/layouts/HomePageLayout.astro b/src/layouts/HomePageLayout.astro index 0906a11..e243c6e 100644 --- a/src/layouts/HomePageLayout.astro +++ b/src/layouts/HomePageLayout.astro @@ -1,24 +1,21 @@ --- import { getCollection } from "astro:content"; import Layout from "./Layout.astro"; -import { useTranslations } from "../i18n"; const blogCollection = (await getCollection("blog")).sort((a, b) => { return b.data.publishedAt.getTime() - a.data.publishedAt.getTime(); }); -const t = useTranslations(Astro.currentLocale); - const schema = { "@context": "http://schema.org", "@type": "WebSite", id: "https://www.costas.dev/", url: "https://www.costas.dev/", - headline: t.homePage.title, + headline: "Ariel Costas - Desarrollador web", }; --- - +