Browse Source

docs: add configs for locale selecter

Kia King Ishii 4 years ago
parent
commit
a9915138ee
1 changed files with 8 additions and 0 deletions
  1. 8 0
      docs/.vitepress/config.js

+ 8 - 0
docs/.vitepress/config.js

@@ -32,6 +32,8 @@ module.exports = {
 
 
     locales: {
     locales: {
       '/': {
       '/': {
+        label: 'English',
+        selectText: 'Languages',
         editLinkText: 'Edit this page on GitHub',
         editLinkText: 'Edit this page on GitHub',
 
 
         nav: [
         nav: [
@@ -86,7 +88,12 @@ module.exports = {
           }
           }
         ]
         ]
       },
       },
+
       '/ptbr/': {
       '/ptbr/': {
+        label: 'Português',
+        selectText: 'Idiomas',
+        editLinkText: 'Edite esta página no GitHub',
+
         nav: [
         nav: [
           { text: 'Guia', link: '/ptbr/guide/' },
           { text: 'Guia', link: '/ptbr/guide/' },
           { text: 'Referência da API', link: '/ptbr/api/' },
           { text: 'Referência da API', link: '/ptbr/api/' },
@@ -98,6 +105,7 @@ module.exports = {
             ]
             ]
           }
           }
         ],
         ],
+
         sidebar: [
         sidebar: [
           {
           {
             text: 'Introdução',
             text: 'Introdução',