Socket
Socket
Sign inDemoInstall

i18n-country-code

Package Overview
Dependencies
0
Maintainers
49
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    i18n-country-code

Translations for country codes


Version published
Maintainers
49
Install size
46.3 kB
Created

Changelog

Source

[1.0.1] - 2019-08-07

Added

  • it, ko and ro translations

Readme

Source

i18n-country-code

Translations for country names based on its ISO Alpha 3 country code.

Install

$ npm install --save i18n-country-code

Usage

Node.js

const translations = require("i18n-country-code/locales/en.json");

const countryName = translations["USA"];
// United States

Webpack

Use it with dynamic import.

const locale = "en"

import(`i18n-country-code/locales/${locale}.json`)
  .then(translations => {
    const countryName = translations["USA"];
    // United States
  })

License

MIT © VTEX

Keywords

FAQs

Last updated on 07 Aug 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc