Skip to content

Commit

Permalink
docs: add zh-CN translation link (#565)
Browse files Browse the repository at this point in the history
Co-authored-by: Anthony Fu <[email protected]>
  • Loading branch information
asfuon and antfu authored Jan 31, 2024
1 parent b6685de commit 0b01d93
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,16 @@ export default defineConfig({
},
},

locales: {
root: {
label: 'English',
},
zh: {
label: '简体中文 (Community)',
link: 'https://shiki-zh-docs.vercel.app',
},
},

head: [
['meta', { name: 'theme-color', content: '#ffffff' }],
['link', { rel: 'icon', href: '/logo.svg', type: 'image/svg+xml' }],
Expand Down

0 comments on commit 0b01d93

Please sign in to comment.