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/FormattedDate.astro | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/components/FormattedDate.astro') diff --git a/src/components/FormattedDate.astro b/src/components/FormattedDate.astro index 45de273..0c7b2d7 100644 --- a/src/components/FormattedDate.astro +++ b/src/components/FormattedDate.astro @@ -5,11 +5,12 @@ import { getFormattedDate } from "@/utils/date"; type Props = HTMLAttributes<"time"> & { date: Date; dateTimeOptions?: Intl.DateTimeFormatOptions; + locale?: string | undefined; }; -const { date, dateTimeOptions, ...attrs } = Astro.props; +const { date, dateTimeOptions, locale, ...attrs } = Astro.props; -const postDate = getFormattedDate(date, dateTimeOptions); +const postDate = getFormattedDate(date, dateTimeOptions, locale); const ISO = date.toISOString(); --- -- cgit v1.2.3