Skip to content

Don't maintain our own list of locales/countries/languages #11954

@GuySartorelli

Description

@GuySartorelli

In SilverStripe\i18n\Data\Intl\IntlLocales there is a long list of possible locales, with locale codes to the language and country that it applies to.

The PHPDoc says it is "exhaustive" (but it wasn't), though geopolitical changes could require future changes to this file. We're not really maintaining this list. I didn't even know it existed until today.

We should try to find a source we can get this data from instead, where someone is actually maintaining the list. Ideally this is pulled in from composer, but we could also update the existing list using a GitHub Action pulling data from an external source.

Some of the relevant PHPDocs reference various standards, so one sensible solution might be a GitHub Action that collects the most recent published version of the relevant standards and creates a PR to update the list (though IMO a composer dependency would still be preferable)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions