Skip to content

Commit

Permalink
docs: update local search i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd committed Jun 27, 2024
1 parent 13f5446 commit 7bde800
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions docs/reference/default-theme-search.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,25 @@ export default defineConfig({
provider: 'local',
options: {
locales: {
zh: {
zh: { // make this `root` if you want to translate the default locale
translations: {
button: {
buttonText: '搜索文档',
buttonAriaLabel: '搜索文档'
buttonText: '搜索',
buttonAriaLabel: '搜索'
},
modal: {
noResultsText: '无法找到相关结果',
resetButtonTitle: '清除查询条件',
displayDetails: '显示详细列表',
resetButtonTitle: '重置搜索',
backButtonTitle: '关闭搜索',
noResultsText: '没有结果',
footer: {
selectText: '选择',
navigateText: '切换'
selectKeyAriaLabel: '输入',
navigateText: '导航',
navigateUpKeyAriaLabel: '上箭头',
navigateDownKeyAriaLabel: '下箭头',
closeText: '关闭',
closeKeyAriaLabel: 'esc'
}
}
}
Expand Down

0 comments on commit 7bde800

Please sign in to comment.