chore(ko): add Korean locale to documentation site (#2173)

This commit is contained in:
mullung
2026-08-02 18:43:46 +08:00
committed by GitHub
parent cfd9c26f09
commit 771ba3f8a7
57 changed files with 6785 additions and 1 deletions
+1 -1
View File
@@ -180,7 +180,7 @@ export function usePrevNext() {
* Keeps navigation within the same section to avoid crossing into unrelated docs.
*/
function getDocsSectionPrefix(fullUrl: string): string | undefined {
const m = fullUrl.match(/\/(en|zh-Hans)\/docs\/([^/]+)\//)
const m = fullUrl.match(/\/(en|zh-Hans|ja|ko)\/docs\/([^/]+)\//)
return m ? `/${m[1]}/docs/${m[2]}/` : undefined
}