I found this code in the Craft documentation:
{% set localeData = craft.i18n.getLocaleData() %} {% for month in localeData.getMonthNames() %} {{ month }} {% endfor %}
What I need is the whole list of countries (from Ascension Island to Zimbabwe).
I tried .getTerritories()
but it doesn't exist:
{% set localeData = craft.i18n.getLocaleData() %} {% for country in localeData.getTerritories() %} {{ country }} {% endfor %}
Is there any solution?