Skip to content

Commit

Permalink
feat: add locales in vitepress config (#4914)
Browse files Browse the repository at this point in the history
* docs: add locales in vitepress config

* docs: format

* feat: update vitepress config

---------

Co-authored-by: Lukas Taegert-Atkinson <lukastaegert@users.noreply.github.com>
  • Loading branch information
iDestin and lukastaegert committed Apr 18, 2023
1 parent abf5603 commit d7d63e6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/.vitepress/config.ts
Expand Up @@ -25,6 +25,10 @@ export default defineConfig({
['meta', { content: 'The JavaScript module bundler', name: 'twitter:description' }],
['meta', { content: 'https://rollupjs.org/twitter-card.jpg', name: 'twitter:image' }]
],
locales: {
root: { label: 'English' },
zh: { label: '简体中文', link: 'https://cn.rollupjs.org' }
},
markdown: {
anchor: {
callback,
Expand Down

1 comment on commit d7d63e6

@vercel
Copy link

@vercel vercel bot commented on d7d63e6 Apr 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.