-
Notifications
You must be signed in to change notification settings - Fork 28.9k
Closed
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)Accessibility, e.g. VoiceOver or TalkBack. (aka a11y)c: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Fluttercustomer: castawayplatform-webWeb applications specificallyWeb applications specificallyteam-webOwned by Web platform teamOwned by Web platform teamtriaged-webTriaged by Web platform teamTriaged by Web platform team
Description
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 listImportant issues not at the top of the work lista: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)Accessibility, e.g. VoiceOver or TalkBack. (aka a11y)c: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Fluttercustomer: castawayplatform-webWeb applications specificallyWeb applications specificallyteam-webOwned by Web platform teamOwned by Web platform teamtriaged-webTriaged by Web platform teamTriaged by Web platform team