Skip to content

Unable to get a list of valid country codes #320

@kneepdee

Description

@kneepdee

Expected Behavior

It would be useful to have a method that returns a list of valid / supported countries data similar to intl-tel-input's getCountryData method

Current Behavior

Currently there seems to be no way to get the supported countries other than extract them from source manually

const defaultCountriesData = [
. This is a source of code duplication and might lead to maintainability issues.

Possible Solution

The API would expose a method getCountryData that returns a list of all countries similar in shape to defaultCountriesData.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions