Skip to content

Commit

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

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

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

const vitePressSidebarConfig = [
...[defaultLocale, 'ko'].map((lang) => {
...defineSupportLocales.map((lang) => {
return {
...commonSidebarConfig,
documentRootPath: `/docs/${lang}`,
Expand All @@ -29,8 +30,6 @@ const vitePressSidebarConfig = [
})
];

const defineSupportLocales = [defaultLocale, 'ko'];

const vitePressI18nConfig: VitePressI18nOptions = {
locales: defineSupportLocales,
rootLocale: defaultLocale,
Expand Down

0 comments on commit d7b481d

Please sign in to comment.