fix: 修复全局搜索组件汉化配置

正确配置全局搜索小组件
This commit is contained in:
GXG 2024-12-09 15:10:40 +08:00 committed by GitHub
parent 9995e8af8c
commit f92ce9d4fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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: '关闭'
},
},
},
},
}
}
}
},
},
},