1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
| import { withPwa } from '@vite-pwa/vitepress';
| import { defineConfigWithTheme } from 'vitepress';
|
| import { en } from './en.mts';
| import { shared } from './shared.mts';
| import { zh } from './zh.mts';
|
| export default withPwa(
| defineConfigWithTheme({
| ...shared,
| locales: {
| en: {
| label: 'English',
| lang: 'en',
| link: '/en/',
| ...en,
| },
| root: {
| label: '简体中文',
| lang: 'zh-CN',
| ...zh,
| },
| },
| }),
| );
|
|