chore: giscus - multiple locales

This commit is contained in:
Ryan Yin 2024-11-22 17:34:02 +08:00
parent 36eb36cac6
commit 1b6e250f1c

View File

@ -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",