mirror of
https://github.com/ZetaKebab/quartz.git
synced 2025-06-22 16:54:36 +00:00
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:
@ -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
|
||||
}
|
||||
}
|
||||
```
|
||||
|
Reference in New Issue
Block a user