Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

feat(autocomplete): I18n support for screen reader messages #1696

Closed
marcysutton opened this issue Feb 26, 2015 · 2 comments
Closed

feat(autocomplete): I18n support for screen reader messages #1696

marcysutton opened this issue Feb 26, 2015 · 2 comments
Labels
a11y This issue is related to accessibility
Milestone

Comments

@marcysutton
Copy link
Contributor

In $mdAutocomplete, the number of matches and the currently highlighted item on arrow key press are announced using an aria-live-enabled element. This works pretty well except the strings are currently embedded into the HTML without internationalization support. We could include an interface like ngPluralize to handle "There is 1 match available" vs. "There are X matches available", but we are hesitant to add that much logic onto autocomplete element itself (which is the API exposed to developers).

The ideal approach for these kinds of translations would be to consolidate them into a single file that would then interface with each component that needed it (like md-button, brought up in #1639).

@marcysutton marcysutton added this to the 1.0-beta1 milestone Feb 26, 2015
@marcysutton marcysutton added the a11y This issue is related to accessibility label Feb 26, 2015
@marcysutton marcysutton changed the title feat(autocomplete): localization support for screen reader messages feat(autocomplete): I18n support for screen reader messages Apr 3, 2015
@jelbourn
Copy link
Member

md-list also has an instance of a hard-coded English message.

@marcysutton
Copy link
Contributor Author

We should consolidate announcements into a single <aria-status> directive so users don't end up with competing ARIA Live Regions in a given app.

@naomiblack naomiblack modified the milestones: 1.0-beta1, 0.12.0 Aug 14, 2015
@ThomasBurleson ThomasBurleson modified the milestones: 1.0-rc1, 1.0-rc2, 1.0-rc3 Oct 27, 2015
@ThomasBurleson ThomasBurleson modified the milestones: 1.0-rc3, 1.0-rc4 Nov 7, 2015
@ThomasBurleson ThomasBurleson modified the milestones: 1.0-rc4, 1.0-rc5 Nov 16, 2015
@ThomasBurleson ThomasBurleson modified the milestones: 1.0-rc5, 1.0-rc8 Nov 25, 2015
@ThomasBurleson ThomasBurleson removed this from the 1.0-rc5 milestone Nov 25, 2015
@ThomasBurleson ThomasBurleson modified the milestones: 1.0-rc8, 1.1.0, Backlog Jan 5, 2016
@ThomasBurleson ThomasBurleson modified the milestones: Backlog, Deprecated Apr 20, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a11y This issue is related to accessibility
Projects
None yet
Development

No branches or pull requests

4 participants