Skip to content

short country name #97

@thoroc

Description

@thoroc

Hi,

I couldn't find it in the docs: How do I display the country code and identification in the drop down when choosing a widget 'country_choice' ?

I know this could be changed in the Misd\PhoneNumberBundle\Form\Type\PhoneNumberType at line 68 as follow:

    foreach (Intl::getRegionBundle()->getCountryNames() as $region => $name) {
        if (false === isset($countries[$region])) {
            continue;
        }
        $countryChoices[sprintf('%s (+%s)', $region, $countries[$region])] = $region;
    }

But I was wondering if there isn't a cleaner way to do this

~thoroc

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions