26 lines
490 B
TypeScript
26 lines
490 B
TypeScript
|
import { withPwa } from '@vite-pwa/vitepress';
|
||
|
import { defineConfigWithTheme } from 'vitepress';
|
||
|
|
||
|
import { en } from './en.mts';
|
||
|
import { shard } from './shard.mts';
|
||
|
import { zh } from './zh.mts';
|
||
|
|
||
|
export default withPwa(
|
||
|
defineConfigWithTheme({
|
||
|
...shard,
|
||
|
locales: {
|
||
|
en: {
|
||
|
label: 'English',
|
||
|
lang: 'en',
|
||
|
link: '/en/',
|
||
|
...en,
|
||
|
},
|
||
|
root: {
|
||
|
label: '简体中文',
|
||
|
lang: 'zh-CN',
|
||
|
...zh,
|
||
|
},
|
||
|
},
|
||
|
}),
|
||
|
);
|