Skip to content

Commit a95aa89

Browse files
committed
docs: update i18n
1 parent ea8aa21 commit a95aa89

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Diff for: docs/guide/i18n.md

+3
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ module.exports = {
5656
label: 'English',
5757
// text for the edit-on-github link
5858
editLinkText: 'Edit this page on GitHub',
59+
// algolia docsearch options for current locale
60+
algolia: {},
5961
nav: [
6062
{ text: 'Nested', link: '/nested/' }
6163
],
@@ -71,6 +73,7 @@ module.exports = {
7173
nav: [
7274
{ text: '嵌套', link: '/zh/nested/' }
7375
],
76+
algolia: {},
7477
sidebar: {
7578
'/zh/': [/* ... */],
7679
'/zh/nested/': [/* ... */]

Diff for: docs/zh/guide/i18n.md

+3
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ module.exports = {
5353
selectText: 'Languages',
5454
label: 'English',
5555
editLinkText: 'Edit this page on GitHub',
56+
algolia: {},
5657
nav: [
5758
{ text: 'Nested', link: '/nested/' }
5859
],
@@ -68,6 +69,8 @@ module.exports = {
6869
label: '简体中文',
6970
// 编辑链接文字
7071
editLinkText: '在 GitHub 上编辑此页',
72+
// 当前 locale 的 algolia docsearch 选项
73+
algolia: {},
7174
nav: [
7275
{ text: '嵌套', link: '/zh/nested/' }
7376
],

0 commit comments

Comments
 (0)