docs: update local search i18n

pull/3290/merge
Divyansh Singh 4 months ago
parent 13f54463ac
commit 7bde800ee0

@ -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'
}
}
}

Loading…
Cancel
Save