dart-lang / i18n

A general mono-repo for Dart i18n and l10n packages.
BSD 3-Clause "New" or "Revised" License
58 stars 34 forks source link

Export needed locales using `@ResourceIdentifier` #812

Open mosuem opened 3 months ago

mosuem commented 3 months ago

To be able to treeshake out unused locales, we should also report the used locales using the @ResourceIdentifier annotation. This would of course require for the locales to be known at compile time, so ideally be a const list set by the user. Otherwise, we should default to a sensible predetermined const list.