Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[RFC][Intl] Support alias locales by default #31022

Copy link
Copy link
Closed
@ro0NL

Description

@ro0NL
Issue body actions

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

No one assigned

    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)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.