Skip to content

Commit a991513

Browse files
committed
docs: add configs for locale selecter
1 parent 126ab7f commit a991513

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: docs/.vitepress/config.js

+8
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ module.exports = {
3232

3333
locales: {
3434
'/': {
35+
label: 'English',
36+
selectText: 'Languages',
3537
editLinkText: 'Edit this page on GitHub',
3638

3739
nav: [
@@ -86,7 +88,12 @@ module.exports = {
8688
}
8789
]
8890
},
91+
8992
'/ptbr/': {
93+
label: 'Português',
94+
selectText: 'Idiomas',
95+
editLinkText: 'Edite esta página no GitHub',
96+
9097
nav: [
9198
{ text: 'Guia', link: '/ptbr/guide/' },
9299
{ text: 'Referência da API', link: '/ptbr/api/' },
@@ -98,6 +105,7 @@ module.exports = {
98105
]
99106
}
100107
],
108+
101109
sidebar: [
102110
{
103111
text: 'Introdução',

0 commit comments

Comments
 (0)