flutter / flutter/flutter

[gen-l10n] support for unofficial locales

Open
#163,143 3 comments 1 reaction 0 assignees View on GitHub
a: internationalization c: new feature c: proposal framework P2 team-framework triaged-framework
Dominant language
Dart
Stars
179k
Forks
31.1k
PR merge metrics
PR metrics pending

Description

### Use case

I want to be able to use gen-l10n to generate localizations for locales that are not in the official list.
If this is supported I can use it to
- Support different dialects we use in the Netherlands that didn't make the [official list](https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry)
- Use it to switch between more formal and informal texts, depending on the customer using the app

### Proposal

Don't validate locales against the [official registry](https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry) upon generation the localization files. Not sure why the decision was ever made or what the impact may be when we get rid of the check.

An explicit flag to bypass may be worth it so that the check stays in place unless one explicitly disabled.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.