github / github/auto-complete-element

[Localization] Support an optional object of Localized phrases for Screen Reader announcements

未关闭
#57 12 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
407
派生
57
平均合并
1 天 7 小时
30 天内合并 PR
5

描述

## Context
Currently, all the screen reader announcements for this component are in English and have very generic wording such as "Results hidden". You may want to use more specific verbiage for your component use case, and/or support multiple languages.

## Acceptance Criteria
- [x] Extend the autocomplete API to allow the developer to pass in localized phrases for every Screen Reader announcement
- [ ] If one phrase isn't passed in, fallback to the default already defined (We've got a lot of feedback in the verbiage here.)
- [ ] Create unit tests to ensure these phrases work correctly

贡献指南

打开贡献指南

调研方向

Start by locating the autocomplete API and the existing default screen reader announcement phrases. Add coverage for omitted phrases falling back to those defaults, and create unit tests confirming that supplied localized phrases are used for each announcement.

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript
领域
accessibility, frontend, internationalization
Issue 类型
功能
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。