diff options
| author | Dawid Rycerz <dawid@rycerz.xyz> | 2026-01-13 18:42:05 +0100 |
|---|---|---|
| committer | Dawid Rycerz <dawid@rycerz.xyz> | 2026-01-13 18:42:05 +0100 |
| commit | a1d3fb8df0e00faa3920d7f5085a52002e58574e (patch) | |
| tree | 288c0a6003e7069338035a0a0e3864414b3e071b /src/components/blog/webmentions/index.astro | |
| parent | 9fe4480c3981c38ae8e24d0495df957039864a5d (diff) | |
Add polish language support
Diffstat (limited to 'src/components/blog/webmentions/index.astro')
| -rw-r--r-- | src/components/blog/webmentions/index.astro | 14 |
1 files changed, 10 insertions, 4 deletions
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; --- <hr class="border-solid" /> -<h2 class="mb-8 before:hidden">Webmentions for this post</h2> +<h2 class="mb-8 before:hidden">{t(language, "webmentionsTitle")}</h2> <div class="space-y-10"> - <Likes mentions={webMentions} /> - <Comments mentions={webMentions} /> + <Likes mentions={webMentions} language={language} /> + <Comments mentions={webMentions} language={language} /> </div> <p class="mt-8"> - Responses powered by{" "} + {t(language, "responsesPoweredBy")}{" "} <a href="https://webmention.io" rel="noreferrer" target="_blank">Webmentions</a> </p> |
