From 1b6e250f1cdb36106451a819e6bd7cd17c017c71 Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Fri, 22 Nov 2024 17:34:02 +0800 Subject: [PATCH] chore: giscus - multiple locales --- docs/.vitepress/theme/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/.vitepress/theme/index.ts b/docs/.vitepress/theme/index.ts index 4dbb30a..b472097 100644 --- a/docs/.vitepress/theme/index.ts +++ b/docs/.vitepress/theme/index.ts @@ -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",