Skip to content

Commit a6884a6

Browse files
authored
Fix: Correct import path and Add Chinese on Giscus language (#144)
* Fix: Ensure Giscus supports Chinese * Fixed an issue where the Chinese locale was not applied in Giscus * Fix: Correct import path for Chinese locale * Fixed an incorrect import path in ( → ). * Revert: yarn.lock
1 parent 23934a6 commit a6884a6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.vitepress/config.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { shared } from "./shared.mts";
66
import { en } from "./en.mts";
77
import { ko } from "./ko.mts";
88
import { ja } from "./ja.mts";
9-
import { ch } from "./ch.mjs";
9+
import { ch } from "./ch.mts";
1010

1111
const require = createRequire(import.meta.url);
1212

.vitepress/theme/utils/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ export const GISCUS_ORIGIN = "https://giscus.app" as const;
33
export const GISCUS_LANG_MAP = {
44
ko: "ko",
55
en: "en",
6-
ja: "ja"
6+
ja: "ja",
7+
ch: "zh-CN"
78
} as const;
89

910
export const GISCUS_THEME = {

0 commit comments

Comments
 (0)