Skip to content

Feature request: Allow declaring main language of app to VoiceOver and TalkBack #99600

@Leffe108

Description

@Leffe108

Use case

Allow declaring the main language of an app to assistive technology such as TalkBack and VoiceOver.

When an app correctly declare its language, the voice engine can select an appropriate voice for the content. This is important because it is common that screen readers have separate voice engines for each language. Using eg. the English language engine to read Swedish text makes it harder for the user to hear and understand what is being said. In the linked issues below there are video recordings where VoiceOver uses the wrong voice as well as sample app code to reproduce the issue.

Supporting sources

This is a top-level recommendation in WCAG accessibility guidelines.

Proposal

Make MaterialApp.locale propagate to assitive technology similar to how <html lang="sv-SE"> sets the language in HTML.

Alternatively, provide a widget similar to Localizations.override that does communicate locale to TalkBack and VoiceOver. A such widget could be used by Flutter app to wrap all their content and ma also be used to satisfy the WCAG level AA recommendation to indicate change in language on a page.

Related issues

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work lista: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)a: internationalizationSupporting other languages or locales. (aka i18n)c: new featureNothing broken; request for a new capabilitycustomer: crowdAffects or could affect many people, though not necessarily a specific customer.frameworkflutter/packages/flutter repository. See also f: labels.team-accessibilityOwned by Framework Accessibility team (i.e. responsible for accessibility code in flutter/flutter)triaged-accessibilityTriaged by Framework Accessibility team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions