From a1d3fb8df0e00faa3920d7f5085a52002e58574e Mon Sep 17 00:00:00 2001 From: Dawid Rycerz Date: Tue, 13 Jan 2026 18:42:05 +0100 Subject: Add polish language support --- src/components/blog/Masthead.astro | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'src/components/blog/Masthead.astro') diff --git a/src/components/blog/Masthead.astro b/src/components/blog/Masthead.astro index 1f52383..e7b3ea9 100644 --- a/src/components/blog/Masthead.astro +++ b/src/components/blog/Masthead.astro @@ -2,15 +2,18 @@ import { Image } from "astro:assets"; import type { CollectionEntry } from "astro:content"; import FormattedDate from "@/components/FormattedDate.astro"; +import { t } from "@/i18n/translations"; interface Props { content: CollectionEntry<"post">; readingTime: string; + language?: string | undefined; } const { content: { data }, readingTime, + language, } = Astro.props; const dateTimeOptions: Intl.DateTimeFormatOptions = { @@ -38,14 +41,21 @@ const dateTimeOptions: Intl.DateTimeFormatOptions = {

- /{" "} + /{ + " " + } {readingTime}

{ data.updatedDate && ( - Updated: - + {t(language, "updated")} + ) } @@ -74,7 +84,7 @@ const dateTimeOptions: Intl.DateTimeFormatOptions = { <> {/* prettier-ignore */} - View more blogs with the tag {tag} + {t(language, "viewMoreWithTag")} {tag} {i < data.tags.length - 1 && ", "} -- cgit v1.2.3