-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Closed
Labels
IntlRFCRFC = Request For Comments (proposals about features that you want to be discussed)RFC = Request For Comments (proposals about features that you want to be discussed)
Description
In #28846 i noticed the following logic:
if (!isset($locales[$value]) && !\in_array($value, $localeBundle->getAliases(), true)) { |
Here the LocaleValidator
allows both locales and aliases. I think it makes sense.
I propose to support aliases by default in the new Locales
data accessor
Locales::exists($alias)
Locales::getName($alias)
Locales::getAliased($alias): ?string
Metadata
Metadata
Assignees
Labels
IntlRFCRFC = Request For Comments (proposals about features that you want to be discussed)RFC = Request For Comments (proposals about features that you want to be discussed)