You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Flutter Web: Identify any changes in language on a page by using the lang attribute (Accessibility) #162324
The lang attribute is used to identify any changes in language on a page to ensure that user agents can correctly present phrases, passages, and in some cases words written in multiple languages.
Proposal
Add the lang attribute to the list of semantics flags on all Flutter component types/widgets. The first two characters of a language code defines the language of the Web page, and the last two characters define the country. For example English and United States are entered as "en-US".
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
yjbanov commentedon Feb 5, 2025
The
Textwidget does have alocalefield. However, it's not wired up to semantics. We'll need to investigate this.chunhtai commentedon Feb 5, 2025
TextSpan can provide locale to it, and it will be translate into SemanticsProperties.attributedLabel
Fix: Ensure Text widget locale is included in semantics language tag (#…
Fix: Ensure Text widget locale is included in semantics language tag (f…
[CP-beta]Fix: Ensure Text widget locale is included in semantics lang…
Fix: Ensure Text widget locale is included in semantics language tag (f…
github-actions commentedon Aug 7, 2025
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.Fix: Ensure Text widget locale is included in semantics language tag (f…
Fix: Ensure Text widget locale is included in semantics language tag (f…
Fix: Ensure Text widget locale is included in semantics language tag (f…
Fix: Ensure Text widget locale is included in semantics language tag (f…
Fix: Ensure Text widget locale is included in semantics language tag …