add multi language
This commit is contained in:
12
.vitepress/config/index.ts
Normal file
12
.vitepress/config/index.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import {defineConfig} from 'vitepress'
|
||||
import {en} from './en'
|
||||
import {zh} from './zh'
|
||||
import {shared} from "./shared";
|
||||
|
||||
export default defineConfig({
|
||||
...shared,
|
||||
locales: {
|
||||
root: {label: "简体中文", ...zh},
|
||||
en: {label: 'English', link: '/docs/en/', ...en}
|
||||
}
|
||||
})
|
Reference in New Issue
Block a user