Skip to content

[web] Parse browser Languages using Intl.Locale #130174

@ditman

Description

@ditman

Is there an existing issue for this?

Use case

The current version of the web engine is doing some manual String parsing to convert navigator.locales into a List<ui.Locale> that Flutter can use.

However, the parsing is being done by hand:

Proposal

The parsing of the locale should instead be done with the Intl.Locale Constructor:

Once it is sufficiently supported:

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listc: tech-debtTechnical debt, code quality, testing, etc.engineflutter/engine related. See also e: labels.platform-webWeb applications specificallyr: solvedIssue is closed as solvedteam-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