From d7b481d1ccd54f516b88056f9013d9469959bdc9 Mon Sep 17 00:00:00 2001 From: leejooy96 Date: Sat, 11 Jan 2025 20:46:17 +0900 Subject: [PATCH] chore: minor cleanup --- docs/.vitepress/config.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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,