i18n-iso-countries
Advanced tools
Comparing version 6.2.1 to 6.2.2
@@ -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; |
{ | ||
"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) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
442940
15278
241
0