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/index.astro | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'src/components/blog/webmentions/index.astro') diff --git a/src/components/blog/webmentions/index.astro b/src/components/blog/webmentions/index.astro index 232b4f3..80376f0 100644 --- a/src/components/blog/webmentions/index.astro +++ b/src/components/blog/webmentions/index.astro @@ -1,8 +1,14 @@ --- +import { t } from "@/i18n/translations"; import { getWebmentionsForUrl } from "@/utils/webmentions"; import Comments from "./Comments.astro"; import Likes from "./Likes.astro"; +interface Props { + language?: string | undefined; +} + +const { language } = Astro.props; const url = new URL(Astro.url.pathname, Astro.site); const webMentions = await getWebmentionsForUrl(`${url}`); @@ -12,12 +18,12 @@ if (!webMentions.length) return; ---
-

Webmentions for this post

+

{t(language, "webmentionsTitle")}

- - + +

- Responses powered by{" "} + {t(language, "responsesPoweredBy")}{" "} Webmentions

-- cgit v1.2.3