From 9ba7c8416de5adb3469dd93d2a21161228c200d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Carlos=20Manzanero=20Dom=C3=ADnguez?= Date: Mon, 7 Oct 2024 19:55:57 -0600 Subject: [PATCH] translate a better way for consuming content post --- src/components/footer.tsx | 22 ++- src/components/microblog-item.astro | 44 ++--- .../en/a-better-way-for-consuming-content.mdx | 4 +- .../una-mejor-forma-de-consumir-contenido.mdx | 110 ++++++++++- src/pages/es/index.astro | 173 +++++++++--------- src/pages/es/videos/[...slug].astro | 7 +- src/pages/es/videos/index.astro | 6 +- src/pages/index.astro | 163 ++++++++--------- src/pages/portfolio/index.astro | 66 +++---- 9 files changed, 359 insertions(+), 236 deletions(-) diff --git a/src/components/footer.tsx b/src/components/footer.tsx index 6f0e1ca..24ad6f8 100644 --- a/src/components/footer.tsx +++ b/src/components/footer.tsx @@ -2,6 +2,19 @@ import { Code, RssIcon } from "lucide-react"; import { Button } from "@/components/ui/button"; import formatDate from "@/utils/format-date"; +const locales = { + en: { + developed_by: "Developed by", + build_handcrafted: "Built handcrafted with", + last_build: "Last build", + }, + es: { + developed_by: "Desarrollado por", + build_handcrafted: "Construido a mano con", + last_build: "Última build", + }, +}; + type Props = { lang: "en" | "es"; }; @@ -11,11 +24,11 @@ export default function Footer(props: Props) {