Merge pull request #32 from gaao/patch-1

fix: 修复全局搜索组件汉化配置
This commit is contained in:
菲鸽 2024-12-09 15:27:22 +08:00 committed by GitHub
commit 2ff579d40a
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: '关闭'
},
},
},
},
}
}
}
},
},
},