mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
docs: fix compiled static html lang (#4021)
This commit is contained in:
@@ -34,6 +34,14 @@ const buildTransformers = () => {
|
||||
|
||||
console.log(`DOC_ENV: ${process.env.DOC_ENV}`)
|
||||
|
||||
const locales = {}
|
||||
languages.forEach((lang) => {
|
||||
locales[`/${lang}`] = {
|
||||
label: lang,
|
||||
lang,
|
||||
}
|
||||
})
|
||||
|
||||
export const config: UserConfig = {
|
||||
title: 'Element Plus',
|
||||
head,
|
||||
@@ -57,6 +65,8 @@ export const config: UserConfig = {
|
||||
langs: languages,
|
||||
},
|
||||
|
||||
locales,
|
||||
|
||||
markdown: {
|
||||
config: (md) => mdPlugin(md),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user