feat(giscus): expose language option for Comments component (#2012)

* add language support for Comment

* docs: let users know they can customize their language preference
This commit is contained in:
Jiangnan Li
2025-06-08 17:23:01 +08:00
committed by GitHub
parent 9de370ae14
commit cdd0be2aa8
3 changed files with 10 additions and 1 deletions

View File

@ -45,6 +45,8 @@ afterBody: [
category: 'Announcements',
// from data-category-id
categoryId: 'DIC_kwDOFxRnmM4B-Xg6',
// from data-lang
lang: 'en'
}
}),
],
@ -90,6 +92,10 @@ type Options = {
// where to put the comment input box relative to the comments
// defaults to 'bottom'
inputPosition?: "top" | "bottom"
// set your preference language here
// defaults to 'en'
lang?: string
}
}
```