Skip to content

Commit

Permalink
Merge pull request #32 from gaao/patch-1
Browse files Browse the repository at this point in the history
fix: 修复全局搜索组件汉化配置
  • Loading branch information
feige996 authored Dec 9, 2024
2 parents 9995e8a + f92ce9d commit 2ff579d
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -196,22 +196,29 @@ export default defineConfig({
provider: 'local',
options: {
locales: {
zh: {
root: {
translations: {
button: {
buttonText: '搜索文档',
buttonAriaLabel: '搜索文档',
buttonAriaLabel: '搜索文档'
},
modal: {
noResultsText: '无法找到相关结果',
displayDetails: '显示详情',
resetButtonTitle: '清除查询条件',
backButtonTitle: '返回',
noResultsText: '无法找到相关结果',
footer: {
selectText: '选择',
selectKeyAriaLabel: '选择',
navigateText: '切换',
navigateUpKeyAriaLabel: '切换',
navigateDownKeyAriaLabel: '切换',
closeText: '关闭',
closeKeyAriaLabel: '关闭'
},
},
},
},
}
}
}
},
},
},
Expand Down

0 comments on commit 2ff579d

Please sign in to comment.