Skip to content

Commit

Permalink
chore: minor cleanup code
Browse files Browse the repository at this point in the history
  • Loading branch information
jooy2 committed Jan 8, 2025
1 parent 7efb2bd commit 32b189f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/src/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { withI18n } from 'vitepress-i18n';
import type { VitePressI18nOptions } from 'vitepress-i18n/types';

const defaultLocale: string = 'en';
const supportedLocale = [defaultLocale, 'ko'];

const commonSidebarConfig: VitePressSidebarOptions = {
debugPrint: true,
Expand All @@ -25,7 +26,7 @@ const commonSidebarConfig: VitePressSidebarOptions = {
};

const vitePressSidebarConfigs: VitePressSidebarOptions[] = [
...[defaultLocale, 'ko'].map((lang) => {
...supportedLocale.map((lang) => {
return {
...commonSidebarConfig,
documentRootPath: `/src/${lang}`,
Expand All @@ -36,7 +37,7 @@ const vitePressSidebarConfigs: VitePressSidebarOptions[] = [
];

const vitePressI18nConfigs: VitePressI18nOptions = {
locales: [defaultLocale, 'ko'],
locales: supportedLocale,
rootLocale: defaultLocale,
searchProvider: 'local',
description: {
Expand Down

0 comments on commit 32b189f

Please sign in to comment.