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/webmentions/Likes.astro | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/components/blog/webmentions/Likes.astro') diff --git a/src/components/blog/webmentions/Likes.astro b/src/components/blog/webmentions/Likes.astro index 7862c43..fce1a96 100644 --- a/src/components/blog/webmentions/Likes.astro +++ b/src/components/blog/webmentions/Likes.astro @@ -1,12 +1,14 @@ --- import { Image } from "astro:assets"; +import { t } from "@/i18n/translations"; import type { WebmentionsChildren } from "@/types"; interface Props { mentions: WebmentionsChildren[]; + language?: string | undefined; } -const { mentions } = Astro.props; +const { mentions, language } = Astro.props; const MAX_LIKES = 10; const likes = mentions.filter((mention) => mention["wm-property"] === "like-of"); @@ -19,8 +21,8 @@ const likesToShow = likes !!likes.length && (

- {likes.length} - {likes.length > 1 ? " People" : " Person"} liked this + {likes.length}{" "} + {likes.length > 1 ? t(language, "peopleLiked") : t(language, "personLiked")}

{!!likesToShow.length && (