Translations for country names based on its ISO Alpha 3 country code.
$ npm install --save i18n-country-codeconst translations = require("i18n-country-code/locales/en.json");
const countryName = translations["USA"];
// United StatesUse it with dynamic import.
const locale = "en"
import(`i18n-country-code/locales/${locale}.json`)
.then(translations => {
const countryName = translations["USA"];
// United States
})MIT © VTEX