Skip to content

Commit 7bde800

Browse files
committed
docs: update local search i18n
1 parent 13f5446 commit 7bde800

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

docs/reference/default-theme-search.md

+13-6
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,25 @@ export default defineConfig({
3939
provider: 'local',
4040
options: {
4141
locales: {
42-
zh: {
42+
zh: { // make this `root` if you want to translate the default locale
4343
translations: {
4444
button: {
45-
buttonText: '搜索文档',
46-
buttonAriaLabel: '搜索文档'
45+
buttonText: '搜索',
46+
buttonAriaLabel: '搜索'
4747
},
4848
modal: {
49-
noResultsText: '无法找到相关结果',
50-
resetButtonTitle: '清除查询条件',
49+
displayDetails: '显示详细列表',
50+
resetButtonTitle: '重置搜索',
51+
backButtonTitle: '关闭搜索',
52+
noResultsText: '没有结果',
5153
footer: {
5254
selectText: '选择',
53-
navigateText: '切换'
55+
selectKeyAriaLabel: '输入',
56+
navigateText: '导航',
57+
navigateUpKeyAriaLabel: '上箭头',
58+
navigateDownKeyAriaLabel: '下箭头',
59+
closeText: '关闭',
60+
closeKeyAriaLabel: 'esc'
5461
}
5562
}
5663
}

0 commit comments

Comments
 (0)