summaryrefslogtreecommitdiff
path: root/src/components/blog/webmentions/index.astro
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/blog/webmentions/index.astro')
-rw-r--r--src/components/blog/webmentions/index.astro14
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>