Content-Length: 296012 | pFad | https://github.com/flutter/flutter/issues/162324

01 Flutter Web: Identify any changes in language on a page by using the lang attribute (Accessibility) · Issue #162324 · flutter/flutter · GitHub
Skip to content

Flutter Web: Identify any changes in language on a page by using the lang attribute (Accessibility) #162324

@jcollins-disney

Description

@jcollins-disney

Use case

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".

Valid values for language and country codes can be found at ISO 639-1 Language Codes and ISO Country Codes.

Example on a page where <html lang="en-US">:
<div>The weather is perfect today, <span lang="es-MX">¡qué bueno!</span></div>

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work lista: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)c: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Fluttercustomer: castawayplatform-webWeb applications specificallyteam-webOwned by Web platform teamtriaged-webTriaged by Web platform team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions









    ApplySandwichStrip

    pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


    --- a PPN by Garber Painting Akron. With Image Size Reduction included!

    Fetched URL: https://github.com/flutter/flutter/issues/162324

    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy