فهرست منبع

docs: add configs for locale selecter

Kia King Ishii 4 سال پیش
والد
کامیت
a9915138ee
1فایلهای تغییر یافته به همراه8 افزوده شده و 0 حذف شده
  1. 8 0
      docs/.vitepress/config.js

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

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