diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index 85bcdda..d2b55f2 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -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, @@ -19,7 +20,7 @@ const commonSidebarConfig: VitePressSidebarOptions = { }; const vitePressSidebarConfig = [ - ...[defaultLocale, 'ko'].map((lang) => { + ...defineSupportLocales.map((lang) => { return { ...commonSidebarConfig, documentRootPath: `/docs/${lang}`, @@ -29,8 +30,6 @@ const vitePressSidebarConfig = [ }) ]; -const defineSupportLocales = [defaultLocale, 'ko']; - const vitePressI18nConfig: VitePressI18nOptions = { locales: defineSupportLocales, rootLocale: defaultLocale,