mirror of
https://github.com/toss/es-toolkit.git
synced 2024-12-11 08:54:07 +03:00
275 lines
13 KiB
TypeScript
275 lines
13 KiB
TypeScript
import { type DefaultTheme, defineConfig } from 'vitepress';
|
|
|
|
export const ko = defineConfig({
|
|
lang: 'ko',
|
|
description: '빠른 성능, 작은 번들 사이즈를 가지는 현대적인 JavaScript 유틸리티 라이브러리',
|
|
|
|
themeConfig: {
|
|
nav: nav(),
|
|
|
|
sidebar: sidebar(),
|
|
|
|
editLink: {
|
|
pattern: 'https://github.com/toss/es-toolkit/edit/main/docs/:path',
|
|
text: 'GitHub에서 수정하기',
|
|
},
|
|
|
|
footer: {
|
|
message: 'MIT 라이선스에 따라 배포됩니다.',
|
|
copyright: `Copyright © ${new Date().getFullYear()} Viva Republica, Inc.`,
|
|
},
|
|
},
|
|
});
|
|
|
|
function nav(): DefaultTheme.NavItem[] {
|
|
return [
|
|
{ text: '홈', link: '/ko' },
|
|
{ text: '소개', link: '/ko/intro' },
|
|
{ text: '레퍼런스', link: '/ko/reference/array/chunk' },
|
|
];
|
|
}
|
|
|
|
function sidebar(): DefaultTheme.Sidebar {
|
|
return [
|
|
{
|
|
text: '가이드',
|
|
items: [
|
|
{ text: '소개', link: '/ko/intro' },
|
|
{ text: '설치 및 사용 방법', link: '/ko/usage' },
|
|
{ text: '번들 사이즈', link: '/ko/bundle-size' },
|
|
{ text: '성능', link: '/ko/performance' },
|
|
{ text: 'Lodash와 호환성', link: '/ko/compatibility' },
|
|
],
|
|
},
|
|
{
|
|
text: '레퍼런스',
|
|
items: [
|
|
{
|
|
text: '배열',
|
|
items: [
|
|
{ text: 'chunk', link: '/ko/reference/array/chunk' },
|
|
{ text: 'concat (호환성)', link: '/ko/reference/compat/array/concat' },
|
|
{ text: 'countBy', link: '/ko/reference/array/countBy' },
|
|
{ text: 'compact', link: '/ko/reference/array/compact' },
|
|
{ text: 'difference', link: '/ko/reference/array/difference' },
|
|
{ text: 'differenceBy', link: '/ko/reference/array/differenceBy' },
|
|
{
|
|
text: 'differenceWith',
|
|
link: '/ko/reference/array/differenceWith',
|
|
},
|
|
{ text: 'drop', link: '/ko/reference/array/drop' },
|
|
{ text: 'dropWhile', link: '/ko/reference/array/dropWhile' },
|
|
{ text: 'dropRight', link: '/ko/reference/array/dropRight' },
|
|
{
|
|
text: 'dropRightWhile',
|
|
link: '/ko/reference/array/dropRightWhile',
|
|
},
|
|
{ text: 'fill', link: '/ko/reference/array/fill' },
|
|
{ text: 'toFilled', link: '/ko/reference/array/toFilled' },
|
|
{ text: 'find (호환성)', link: '/ko/reference/compat/array/find' },
|
|
{ text: 'findIndex (호환성)', link: '/ko/reference/compat/array/findIndex' },
|
|
{ text: 'flatMap', link: '/ko/reference/array/flatMap' },
|
|
{ text: 'flatten', link: '/ko/reference/array/flatten' },
|
|
{ text: 'flattenDeep', link: '/ko/reference/array/flattenDeep' },
|
|
{ text: 'forEachRight', link: '/ko/reference/array/forEachRight' },
|
|
{ text: 'groupBy', link: '/ko/reference/array/groupBy' },
|
|
{ text: 'indexOf (호환성)', link: '/ko/reference/compat/array/indexOf' },
|
|
{ text: 'intersection', link: '/ko/reference/array/intersection' },
|
|
{
|
|
text: 'intersectionBy',
|
|
link: '/ko/reference/array/intersectionBy',
|
|
},
|
|
{
|
|
text: 'intersectionWith',
|
|
link: '/ko/reference/array/intersectionWith',
|
|
},
|
|
{ text: 'isSubset', link: '/ko/reference/array/isSubset' },
|
|
{ text: 'keyBy', link: '/ko/reference/array/keyBy' },
|
|
{ text: 'minBy', link: '/ko/reference/array/minBy' },
|
|
{ text: 'maxBy', link: '/ko/reference/array/maxBy' },
|
|
{ text: 'min (호환성)', link: '/ko/reference/compat/array/min' },
|
|
{ text: 'max (호환성)', link: '/ko/reference/compat/array/max' },
|
|
{ text: 'orderBy', link: '/ko/reference/array/orderBy' },
|
|
{ text: 'partition', link: '/ko/reference/array/partition' },
|
|
{ text: 'sample', link: '/ko/reference/array/sample' },
|
|
{ text: 'sampleSize', link: '/ko/reference/array/sampleSize' },
|
|
{ text: 'shuffle', link: '/ko/reference/array/shuffle' },
|
|
{ text: 'size (호환성)', link: '/ko/reference/compat/array/size' },
|
|
{ text: 'sortBy', link: '/ko/reference/array/sortBy' },
|
|
{ text: 'take', link: '/ko/reference/array/take' },
|
|
{ text: 'takeWhile', link: '/ko/reference/array/takeWhile' },
|
|
{ text: 'takeRight', link: '/ko/reference/array/takeRight' },
|
|
{
|
|
text: 'takeRightWhile',
|
|
link: '/ko/reference/array/takeRightWhile',
|
|
},
|
|
{ text: 'union', link: '/ko/reference/array/union' },
|
|
{ text: 'unionBy', link: '/ko/reference/array/unionBy' },
|
|
{ text: 'unionWith', link: '/ko/reference/array/unionWith' },
|
|
{ text: 'unzip', link: '/ko/reference/array/unzip' },
|
|
{ text: 'unzipWith', link: '/ko/reference/array/unzipWith' },
|
|
{ text: 'uniq', link: '/ko/reference/array/uniq' },
|
|
{ text: 'uniqBy', link: '/ko/reference/array/uniqBy' },
|
|
{ text: 'uniqWith', link: '/ko/reference/array/uniqWith' },
|
|
{ text: 'without', link: '/ko/reference/array/without' },
|
|
{ text: 'xor', link: '/ko/reference/array/xor' },
|
|
{ text: 'xorBy', link: '/ko/reference/array/xorBy' },
|
|
{ text: 'xorWith', link: '/ko/reference/array/xorWith' },
|
|
{ text: 'zip', link: '/ko/reference/array/zip' },
|
|
{ text: 'zipObject', link: '/ko/reference/array/zipObject' },
|
|
{ text: 'zipObjectDeep (호환성)', link: '/ko/reference/compat/array/zipObjectDeep' },
|
|
{ text: 'zipWith', link: '/ko/reference/array/zipWith' },
|
|
{ text: 'head', link: '/ko/reference/array/head' },
|
|
{ text: 'tail', link: '/ko/reference/array/tail' },
|
|
{ text: 'last', link: '/ko/reference/array/last' },
|
|
{ text: 'initial', link: '/ko/reference/array/initial' },
|
|
],
|
|
},
|
|
{
|
|
text: '함수',
|
|
items: [
|
|
{ text: 'before', link: '/ko/reference/function/before' },
|
|
{ text: 'after', link: '/ko/reference/function/after' },
|
|
{ text: 'debounce', link: '/ko/reference/function/debounce' },
|
|
{ text: 'throttle', link: '/ko/reference/function/throttle' },
|
|
{ text: 'negate', link: '/ko/reference/function/negate' },
|
|
{ text: 'once', link: '/ko/reference/function/once' },
|
|
{ text: 'noop', link: '/ko/reference/function/noop' },
|
|
{ text: 'memoize', link: '/ko/reference/function/memoize' },
|
|
{ text: 'ary', link: '/ko/reference/function/ary' },
|
|
{ text: 'unary', link: '/ko/reference/function/unary' },
|
|
{ text: 'bind (호환성)', link: '/ko/reference/compat/function/bind' },
|
|
{ text: 'partial', link: '/ko/reference/function/partial' },
|
|
{ text: 'partialRight', link: '/ko/reference/function/partialRight' },
|
|
{ text: 'rest', link: '/ko/reference/function/rest' },
|
|
],
|
|
},
|
|
{
|
|
text: '숫자',
|
|
items: [
|
|
{ text: 'clamp', link: '/ko/reference/math/clamp' },
|
|
{ text: 'inRange', link: '/ko/reference/math/inRange' },
|
|
{ text: 'mean', link: '/ko/reference/math/mean' },
|
|
{ text: 'meanBy', link: '/ko/reference/math/meanBy' },
|
|
{ text: 'random', link: '/ko/reference/math/random' },
|
|
{ text: 'randomInt', link: '/ko/reference/math/randomInt' },
|
|
{ text: 'round', link: '/ko/reference/math/round' },
|
|
{ text: 'range', link: '/ko/reference/math/range' },
|
|
{ text: 'sum', link: '/ko/reference/math/sum' },
|
|
{ text: 'sumBy', link: '/ko/reference/math/sumBy' },
|
|
],
|
|
},
|
|
{
|
|
text: '객체',
|
|
items: [
|
|
{ text: 'clone', link: '/ko/reference/object/clone' },
|
|
{ text: 'cloneDeep', link: '/ko/reference/object/cloneDeep' },
|
|
{ text: 'invert', link: '/ko/reference/object/invert' },
|
|
{ text: 'flattenObject', link: '/ko/reference/object/flattenObject' },
|
|
{ text: 'mapKeys', link: '/ko/reference/object/mapKeys' },
|
|
{ text: 'mapValues', link: '/ko/reference/object/mapValues' },
|
|
{ text: 'merge', link: '/ko/reference/object/merge' },
|
|
{ text: 'mergeWith', link: '/ko/reference/object/mergeWith' },
|
|
{ text: 'toMerged', link: '/ko/reference/object/toMerged' },
|
|
{ text: 'omit', link: '/ko/reference/object/omit' },
|
|
{ text: 'omitBy', link: '/ko/reference/object/omitBy' },
|
|
{ text: 'pick', link: '/ko/reference/object/pick' },
|
|
{ text: 'pickBy', link: '/ko/reference/object/pickBy' },
|
|
{ text: 'get (호환성)', link: '/ko/reference/compat/object/get' },
|
|
{ text: 'set (호환성)', link: '/ko/reference/compat/object/set' },
|
|
{ text: 'has (호환성)', link: '/ko/reference/compat/object/has' },
|
|
{ text: 'property (호환성)', link: '/ko/reference/compat/object/property' },
|
|
],
|
|
},
|
|
{
|
|
text: '타입 가드',
|
|
items: [
|
|
{ text: 'isArguments (호환성)', link: '/ko/reference/compat/predicate/isArguments' },
|
|
{ text: 'isArray (호환성)', link: '/ko/reference/compat/predicate/isArray' },
|
|
{ text: 'isArrayLike (호환성)', link: '/ko/reference/compat/predicate/isArrayLike' },
|
|
{ text: 'isBoolean', link: '/ko/reference/predicate/isBoolean' },
|
|
{ text: 'isEqual', link: '/ko/reference/predicate/isEqual' },
|
|
{ text: 'isFunction', link: '/ko/reference/predicate/isFunction' },
|
|
{ text: 'isLength', link: '/ko/reference/predicate/isLength' },
|
|
{ text: 'isPlainObject', link: '/ko/reference/predicate/isPlainObject' },
|
|
{ text: 'isPrimitive', link: '/ko/reference/predicate/isPrimitive' },
|
|
{ text: 'isRegExp', link: '/ko/reference/predicate/isRegExp' },
|
|
{ text: 'isString', link: '/ko/reference/predicate/isString' },
|
|
{ text: 'isMatch (호환성)', link: '/ko/reference/compat/predicate/isMatch' },
|
|
{ text: 'matches (호환성)', link: '/ko/reference/compat/predicate/matches' },
|
|
{ text: 'matchesProperty (호환성)', link: '/ko/reference/compat/predicate/matchesProperty' },
|
|
{ text: 'isNil', link: '/ko/reference/predicate/isNil' },
|
|
{ text: 'isNotNil', link: '/ko/reference/predicate/isNotNil' },
|
|
{ text: 'isNull', link: '/ko/reference/predicate/isNull' },
|
|
{ text: 'isObjectLike (호환성)', link: '/ko/reference/compat/predicate/isObjectLike' },
|
|
{ text: 'isTypedArray', link: '/ko/reference/predicate/isTypedArray' },
|
|
{
|
|
text: 'isUndefined',
|
|
link: '/ko/reference/predicate/isUndefined',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
text: 'Promise',
|
|
items: [
|
|
{ text: 'delay', link: '/ko/reference/promise/delay' },
|
|
{ text: 'timeout', link: '/ko/reference/promise/timeout' },
|
|
{ text: 'withTimeout', link: '/ko/reference/promise/withTimeout' },
|
|
],
|
|
},
|
|
{
|
|
text: '문자열',
|
|
items: [
|
|
{ text: 'camelCase', link: '/ko/reference/string/camelCase' },
|
|
{ text: 'snakeCase', link: '/ko/reference/string/snakeCase' },
|
|
{ text: 'kebabCase', link: '/ko/reference/string/kebabCase' },
|
|
{ text: 'lowerCase', link: '/ko/reference/string/lowerCase' },
|
|
{ text: 'startCase', link: '/ko/reference/string/startCase' },
|
|
{ text: 'pascalCase', link: '/ko/reference/string/pascalCase' },
|
|
{ text: 'capitalize', link: '/ko/reference/string/capitalize' },
|
|
{ text: 'lowerFirst', link: '/ko/reference/string/lowerFirst' },
|
|
{ text: 'upperFirst', link: '/ko/reference/string/upperFirst' },
|
|
{ text: 'startsWith (호환성)', link: '/ko/reference/compat/string/startsWith' },
|
|
{ text: 'endsWith (호환성)', link: '/ko/reference/compat/string/endsWith' },
|
|
{ text: 'padStart (호환성)', link: '/ko/reference/compat/string/padStart' },
|
|
{ text: 'padEnd (호환성)', link: '/ko/reference/compat/string/padEnd' },
|
|
],
|
|
},
|
|
{
|
|
text: '에러',
|
|
items: [
|
|
{ text: 'AbortError', link: '/ko/reference/error/AbortError' },
|
|
{ text: 'TimeoutError', link: '/ko/reference/error/TimeoutError' },
|
|
],
|
|
},
|
|
],
|
|
},
|
|
];
|
|
}
|
|
|
|
export const search: DefaultTheme.LocalSearchOptions['locales'] = {
|
|
ko: {
|
|
translations: {
|
|
button: {
|
|
buttonText: '검색',
|
|
buttonAriaLabel: '검색',
|
|
},
|
|
modal: {
|
|
backButtonTitle: '뒤로가기',
|
|
displayDetails: '더보기',
|
|
footer: {
|
|
closeKeyAriaLabel: '닫기',
|
|
closeText: '닫기',
|
|
navigateDownKeyAriaLabel: '아래로',
|
|
navigateText: '이동',
|
|
navigateUpKeyAriaLabel: '위로',
|
|
selectKeyAriaLabel: '선택',
|
|
selectText: '선택',
|
|
},
|
|
noResultsText: '검색 결과를 찾지 못했어요.',
|
|
resetButtonTitle: '모두 지우기',
|
|
},
|
|
},
|
|
},
|
|
};
|