element-plus/docs/.vitepress/utils/lang.ts
三咲智子 a5dd21e94a
docs(build): refactor config & support dev without pre build (#3743)
* docs: refactor config

* docs(build): support dev without pre build

* docs: disable sourcemap
2021-09-30 19:26:30 +08:00

7 lines
180 B
TypeScript

import fs from 'fs'
import path from 'path'
export const languages = fs.readdirSync(path.resolve(__dirname, '../crowdin'))
export const ensureLang = (lang: string) => `/${lang}`