Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

更新搜索框翻译,添加 ARIA 标签 #406

Merged
merged 2 commits into from
Sep 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions packages/vitepress-theme-project-trans/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,16 @@ function genConfig() {
modal: {
noResultsText: '无法找到相关结果',
resetButtonTitle: '清除查询条件',
displayDetails: '显示详细列表',
footer: {
selectText: '选择',
navigateText: '切换',
closeText: '关闭',
// 无障碍(ARIA)标签,用于描述键盘导航操作
navigateUpKeyAriaLabel: '上箭头',
navigateDownKeyAriaLabel: '下箭头',
selectKeyAriaLabel: '回车',
closeKeyAriaLabel: '退出'
},
},
},
Expand Down
Loading