index.mts 493 B

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