ChrisEbert / strapi-plugin-country-select

A strapi custom field for selecting any country based on the ISO 3166-1 country code standard.
MIT License
10 stars 12 forks source link

there is no possibility to get full country name, only code #11

Open kapustina-oks opened 7 months ago

kapustina-oks commented 7 months ago
Снимок экрана 2024-03-19 в 15 19 47

Please assist, I need the full countries name, how can I get it with this plugin? Does it possible?

SalahAdDin commented 6 months ago

@ChrisEbert Are you maintaining this repo?

ChrisEbert commented 6 months ago

You should combine strapi-plugin-country-select with i18n-iso-countries in your frontend code like this:

var countries = require("i18n-iso-countries");

console.log(countries.getName("LT", "en")); // "Lithuania"