Skip to content

Commit

Permalink
更新页面搜索,调整为中文
Browse files Browse the repository at this point in the history
  • Loading branch information
jinzhongjia committed Dec 17, 2023
1 parent 0fa6dad commit 0fea675
Showing 1 changed file with 20 additions and 21 deletions.
41 changes: 20 additions & 21 deletions learn/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,26 @@ export default defineConfig({
},
search: {
provider: "local",
// options: {
// detailedView: true,
// locales: {
// zh: {
// translations: {
// button: {
// buttonText: "搜索文档",
// buttonAriaLabel: "搜索文档",
// },
// modal: {
// noResultsText: "无法找到相关结果",
// resetButtonTitle: "清除查询条件",
// footer: {
// selectText: "选择",
// navigateText: "切换",
// },
// },
// },
// },
// },
// },
options: {
locales: {
root: {
translations: {
button: {
buttonText: "搜索文档",
buttonAriaLabel: "搜索文档",
},
modal: {
noResultsText: "无法找到相关结果",
resetButtonTitle: "清除查询条件",
footer: {
selectText: "选择",
navigateText: "切换",
},
},
},
},
},
},
},
nav: nav,
sidebar: sidebar,
Expand Down

0 comments on commit 0fea675

Please sign in to comment.