<p dir="auto">I notice that it exists a country form type that display a list of countries using the Intl bundle.</p>
<p dir="auto">This form type is very usefull, but there is no easy way to restrict the countries available. For example if I want the user to select a country into a predefined list, it is currently not possible (except creating a custom choice form type).</p>
<p dir="auto">What would be wonderfull is that we can configure a list of predefined countries by sending an array containing the countries ISO code (array('uk', 'fr', 'it', 'es') for example) And the component will generate the list translating those ISO code into user language country name.</p>
<p dir="auto">NOTE: This could also be applied to language form type.</p>
<p dir="auto">It would be nice to have an option named for instance <code class="notranslate">allowed_locales</code>, that when set, would cause the widget to display only locales that appear in it, and would throw an exception if one of them can't be found in <code class="notranslate">Intl::getLocaleBundle()-&gt;getLocaleNames()</code> keys. If this is something that you think would be useful, I can write the code and make a PR.</p>