element-plus/docs/.vitepress/utils/lang.ts

7 lines
180 B
TypeScript
Raw Normal View History

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