fix: 修复全局搜索组件汉化配置
正确配置全局搜索小组件
This commit is contained in:
parent
9995e8af8c
commit
f92ce9d4fa
@ -196,22 +196,29 @@ export default defineConfig({
|
|||||||
provider: 'local',
|
provider: 'local',
|
||||||
options: {
|
options: {
|
||||||
locales: {
|
locales: {
|
||||||
zh: {
|
root: {
|
||||||
translations: {
|
translations: {
|
||||||
button: {
|
button: {
|
||||||
buttonText: '搜索文档',
|
buttonText: '搜索文档',
|
||||||
buttonAriaLabel: '搜索文档',
|
buttonAriaLabel: '搜索文档'
|
||||||
},
|
},
|
||||||
modal: {
|
modal: {
|
||||||
noResultsText: '无法找到相关结果',
|
displayDetails: '显示详情',
|
||||||
resetButtonTitle: '清除查询条件',
|
resetButtonTitle: '清除查询条件',
|
||||||
|
backButtonTitle: '返回',
|
||||||
|
noResultsText: '无法找到相关结果',
|
||||||
footer: {
|
footer: {
|
||||||
selectText: '选择',
|
selectText: '选择',
|
||||||
|
selectKeyAriaLabel: '选择',
|
||||||
navigateText: '切换',
|
navigateText: '切换',
|
||||||
|
navigateUpKeyAriaLabel: '切换',
|
||||||
|
navigateDownKeyAriaLabel: '切换',
|
||||||
|
closeText: '关闭',
|
||||||
|
closeKeyAriaLabel: '关闭'
|
||||||
},
|
},
|
||||||
},
|
}
|
||||||
},
|
}
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user