mirror of
https://github.com/ryan4yin/nixos-and-flakes-book.git
synced 2024-11-23 08:33:41 +01:00
chore: giscus - multiple locales
This commit is contained in:
parent
36eb36cac6
commit
1b6e250f1c
@ -28,14 +28,14 @@ export default {
|
||||
|
||||
mapping: "pathname", // default: `pathname`
|
||||
inputPosition: "top", // default: `top`
|
||||
lang: "en-US", // default: `zh-CN`
|
||||
lang: "en-US", // `zh-CN` | `en-US` | `ja-JP` | ...
|
||||
// i18n setting (Note: This configuration will override the default language set by lang)
|
||||
// Configured as an object with key-value pairs inside:
|
||||
// [your i18n configuration name]: [corresponds to the language pack name in Giscus]
|
||||
locales: {
|
||||
"zh-CN": "zh-CN",
|
||||
"en-US": "en",
|
||||
// "ja-JP": "ja",
|
||||
"ja-JP": "ja",
|
||||
},
|
||||
// Avoid mismatches due to GitHub's fuzzy searching method when there are multiple discussions with similar titles/pathname.
|
||||
strict: "1",
|
||||
|
Loading…
Reference in New Issue
Block a user