From cdd0be2aa8c6e0a6d97779f3db3072952b54bf13 Mon Sep 17 00:00:00 2001
From: Jiangnan Li <lijn101@nenu.edu.cn>
Date: Sun, 08 Jun 2025 09:23:01 +0000
Subject: [PATCH] feat(giscus): expose language option for Comments component (#2012)

---
 quartz/components/Comments.tsx |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/quartz/components/Comments.tsx b/quartz/components/Comments.tsx
index 0bfd82d..a731521 100644
--- a/quartz/components/Comments.tsx
+++ b/quartz/components/Comments.tsx
@@ -17,6 +17,7 @@
     strict?: boolean
     reactionsEnabled?: boolean
     inputPosition?: "top" | "bottom"
+    lang?: string
   }
 }
 
@@ -50,6 +51,7 @@
         data-theme-url={
           opts.options.themeUrl ?? `https://${cfg.baseUrl ?? "example.com"}/static/giscus`
         }
+        data-lang={opts.options.lang ?? "en"}
       ></div>
     )
   }

--
Gitblit v1.10.0