Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

strapi-plugin-country-select

ChrisEbert3.9kMIT2.1.0TypeScript support: included

A strapi custom field for selecting any country based on the ISO 3166-1 country code standard.

strapi, strapi-plugin, custom-fields, country

readme

Strapi plugin country-select

A strapi custom field for selecting any country based on the ISO 3166-1 country code standard.

Installation

To install this plugin, you need to add an NPM dependency to your Strapi application:

# Using Yarn
yarn add strapi-plugin-country-select

# Or using NPM
npm install strapi-plugin-country-select

Then, you'll need to build your admin panel:

# Using Yarn
yarn build

# Or using NPM
npm run build

Usage

After installation you will find the country-select at the custom fields section of the content-type builder.

country select screenshot

Now you can select any country from the list. The Alpha-2 code of the selected country is stored in the database.

country select screenshot