Skip to content

Commit

Permalink
chore: simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
jooy2 committed Nov 5, 2024
1 parent b93dda7 commit 85154a5
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,9 +6,10 @@ import { VitePressI18nOptions } from 'vitepress-i18n/dist/types'

const capitalizeFirst = (str: string): string => str.charAt(0).toUpperCase() + str.slice(1)
const defaultLocale: string = 'en'
const supportLocales = [defaultLocale, 'ko']

const vitePressI18nConfigs: VitePressI18nOptions = {
locales: [defaultLocale, 'ko'],
locales: supportLocales,
rootLocale: defaultLocale,
searchProvider: 'local',
description: {
Expand Down Expand Up @@ -36,7 +37,7 @@ const vitePressI18nConfigs: VitePressI18nOptions = {
}

const vitePressSidebarConfigs: VitePressSidebarOptions = [
...[defaultLocale, 'ko'].map((lang) => {
...supportLocales.map((lang) => {
return {
collapsed: false,
useTitleFromFileHeading: true,
Expand Down

0 comments on commit 85154a5

Please sign in to comment.