Skip to content

Commit

Permalink
docs: add i18n link (#2978)
Browse files Browse the repository at this point in the history
  • Loading branch information
elonehoo committed Mar 8, 2023
1 parent 18d8019 commit c44e5af
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/.vitepress/config.ts
Expand Up @@ -21,6 +21,17 @@ export default withPwa(defineConfig({
lang: 'en-US',
title: vitestName,
description: vitestDescription,
locales: {
root: {
label: 'English',
lang: 'en',
},
en: {
label: '简体中文',
lang: 'zh',
link: 'https://cn.vitest.dev/',
},
},
head: [
['meta', { name: 'theme-color', content: '#729b1a' }],
['link', { rel: 'icon', href: '/logo.svg', type: 'image/svg+xml' }],
Expand Down

0 comments on commit c44e5af

Please sign in to comment.