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