Skip to content

Add ISO-3166-1 Numeric codes to Intl component #50860

@benr77

Description

@benr77

Description

The Intl component is supporting access to 2 and 3 letter ISO codes for countries.

However, there is a third, numeric type which is not currently supported.
https://www.iso.org/obp/ui/#search/code/

Currently my requirement is to convert a 2 letter country code (FR) into a numeric equivalent (250) and it looks like I'm going to either have to install another package (https://github.com/thephpleague/iso3166) or hard-code a static list in my codebase.

Would it be acceptable to add these numeric codes to the Intl component?

Thanks!

Example

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions