Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

i18n-iso-countries

Package Overview
Dependencies
Maintainers
2
Versions
111
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

i18n-iso-countries - npm Package Compare versions

Comparing version 6.2.1 to 6.2.2

63

entry-node.js

@@ -1,11 +0,64 @@

var fs = require("fs");
var path = require("path");
var library = require("./index");
var langDir = path.join(__dirname, "langs");
var locales = fs.readdirSync(langDir);
var locales = [
require("./langs/ur.json"),
require("./langs/vi.json"),
require("./langs/ar.json"),
require("./langs/az.json"),
require("./langs/be.json"),
require("./langs/bg.json"),
require("./langs/bn.json"),
require("./langs/bs.json"),
require("./langs/ca.json"),
require("./langs/cs.json"),
require("./langs/da.json"),
require("./langs/de.json"),
require("./langs/el.json"),
require("./langs/en.json"),
require("./langs/es.json"),
require("./langs/et.json"),
require("./langs/fa.json"),
require("./langs/fi.json"),
require("./langs/fr.json"),
require("./langs/gl.json"),
require("./langs/el.json"),
require("./langs/he.json"),
require("./langs/hi.json"),
require("./langs/hr.json"),
require("./langs/hu.json"),
require("./langs/hy.json"),
require("./langs/id.json"),
require("./langs/it.json"),
require("./langs/ja.json"),
require("./langs/ka.json"),
require("./langs/kk.json"),
require("./langs/ko.json"),
require("./langs/ky.json"),
require("./langs/lt.json"),
require("./langs/lv.json"),
require("./langs/mk.json"),
require("./langs/mn.json"),
require("./langs/ms.json"),
require("./langs/nb.json"),
require("./langs/nl.json"),
require("./langs/nn.json"),
require("./langs/pl.json"),
require("./langs/pt.json"),
require("./langs/ro.json"),
require("./langs/ru.json"),
require("./langs/sk.json"),
require("./langs/sl.json"),
require("./langs/sr.json"),
require("./langs/sv.json"),
require("./langs/th.json"),
require("./langs/tr.json"),
require("./langs/uk.json"),
require("./langs/uz.json"),
require("./langs/zh.json"),
];
for (var i = 0; i < locales.length; i++) {
library.registerLocale(require(path.join(langDir, locales[i])));
library.registerLocale(locales[i]);
}
module.exports = library;

2

package.json
{
"name": "i18n-iso-countries",
"version": "6.2.1",
"version": "6.2.2",
"description": "i18n for ISO 3166-1 country codes",

@@ -5,0 +5,0 @@ "typings": "index.d.ts",

@@ -232,2 +232,3 @@ [![Build Status](https://secure.travis-ci.org/michaelwittig/node-i18n-iso-countries.png)](http://travis-ci.org/michaelwittig/node-i18n-iso-countries)

- add a json file under [langs/](langs)
- add the language to the `data` object in entry-node.js at the top
- add language to section **Supported languages** in [README.md](#supported-languages-iso-639-1)

@@ -234,0 +235,0 @@ - add language to keywords in [package.json](package.json)

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc