i18next-conv
Advanced tools
Comparing version 0.0.1 to 0.0.2
var Gettext = require("node-gettext") | ||
, i18next = require("i18next") | ||
, plurals = require("./plurals") | ||
, fs = require("fs") | ||
@@ -83,3 +83,3 @@ , path = require("path") | ||
} else { | ||
var ext = i18next.pluralExtensions.rules[domain.split('-')[0]]; | ||
var ext = plurals.rules[domain.split('-')[0]]; | ||
@@ -86,0 +86,0 @@ for (var i = 0, len = values.length; i < len; i++) { |
@@ -6,3 +6,3 @@ { | ||
, "keywords": ["i18next", "gettext"] | ||
, "version": "0.0.1" | ||
, "version": "0.0.2" | ||
, "private": false | ||
@@ -21,4 +21,2 @@ , "preferGlobal": "true" | ||
, "commander": "*" | ||
, "i18next": "*" | ||
, "express": "*" | ||
, "colors": "*" | ||
@@ -25,0 +23,0 @@ } |
@@ -16,14 +16,17 @@ # Introduction | ||
__for help:__ | ||
```` | ||
for help: | ||
i18next-conv -h | ||
```` | ||
to convert a .mo or .po file to json: | ||
__to convert a .mo or .po file to json:__ | ||
```` | ||
i18next-conv -l [domain] -s [sourcePath] -t [targetPath] | ||
```` | ||
eg.: i18next-conv -l en -s ./locales/en.po -t ./locales/en/translation.json | ||
```` | ||
@@ -33,3 +36,3 @@ _if no target (-t) is specified file will be stored to [sourceDir]/[domain]/translation.json._ | ||
# All credits got to | ||
# All credits go to | ||
@@ -36,0 +39,0 @@ - [andri9's node-gettext](https://github.com/andris9/node-gettext) for parsing .mo and .po files |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 2 instances in 1 package
40809
3
13
1220
3
60
3
- Removedexpress@*
- Removedi18next@*
- Removed@babel/runtime@7.26.0(transitive)
- Removedaccepts@2.0.0(transitive)
- Removedarray-flatten@3.0.0(transitive)
- Removedbody-parser@2.0.2(transitive)
- Removedbytes@3.1.2(transitive)
- Removedcall-bind-apply-helpers@1.0.1(transitive)
- Removedcall-bound@1.0.3(transitive)
- Removedcontent-disposition@1.0.0(transitive)
- Removedcontent-type@1.0.5(transitive)
- Removedcookie@0.7.1(transitive)
- Removedcookie-signature@1.2.2(transitive)
- Removeddebug@2.6.93.1.04.3.6(transitive)
- Removeddepd@2.0.0(transitive)
- Removeddestroy@1.2.0(transitive)
- Removeddunder-proto@1.0.0(transitive)
- Removedee-first@1.1.1(transitive)
- Removedencodeurl@1.0.22.0.0(transitive)
- Removedes-define-property@1.0.1(transitive)
- Removedes-errors@1.3.0(transitive)
- Removedes-object-atoms@1.0.0(transitive)
- Removedescape-html@1.0.3(transitive)
- Removedetag@1.8.1(transitive)
- Removedexpress@5.0.1(transitive)
- Removedfinalhandler@2.0.0(transitive)
- Removedforwarded@0.2.0(transitive)
- Removedfresh@0.5.22.0.0(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedget-intrinsic@1.2.6(transitive)
- Removedgopd@1.2.0(transitive)
- Removedhas-symbols@1.1.0(transitive)
- Removedhasown@2.0.2(transitive)
- Removedhttp-errors@2.0.0(transitive)
- Removedi18next@24.1.0(transitive)
- Removediconv-lite@0.5.20.6.3(transitive)
- Removedinherits@2.0.4(transitive)
- Removedipaddr.js@1.9.1(transitive)
- Removedis-promise@4.0.0(transitive)
- Removedmath-intrinsics@1.0.0(transitive)
- Removedmedia-typer@0.3.01.1.0(transitive)
- Removedmerge-descriptors@2.0.0(transitive)
- Removedmethods@1.1.2(transitive)
- Removedmime-db@1.52.01.53.0(transitive)
- Removedmime-types@2.1.353.0.0(transitive)
- Removedms@2.0.02.1.22.1.3(transitive)
- Removednegotiator@1.0.0(transitive)
- Removedobject-inspect@1.13.3(transitive)
- Removedon-finished@2.4.1(transitive)
- Removedonce@1.4.0(transitive)
- Removedparseurl@1.3.3(transitive)
- Removedpath-to-regexp@8.2.0(transitive)
- Removedproxy-addr@2.0.7(transitive)
- Removedqs@6.13.0(transitive)
- Removedrange-parser@1.2.1(transitive)
- Removedraw-body@3.0.0(transitive)
- Removedregenerator-runtime@0.14.1(transitive)
- Removedrouter@2.0.0(transitive)
- Removedsafe-buffer@5.2.1(transitive)
- Removedsafer-buffer@2.1.2(transitive)
- Removedsend@1.1.0(transitive)
- Removedserve-static@2.1.0(transitive)
- Removedsetprototypeof@1.2.0(transitive)
- Removedside-channel@1.1.0(transitive)
- Removedside-channel-list@1.0.0(transitive)
- Removedside-channel-map@1.0.1(transitive)
- Removedside-channel-weakmap@1.0.2(transitive)
- Removedstatuses@2.0.1(transitive)
- Removedtoidentifier@1.0.1(transitive)
- Removedtype-is@1.6.182.0.0(transitive)
- Removedunpipe@1.0.0(transitive)
- Removedutils-merge@1.0.1(transitive)
- Removedvary@1.1.2(transitive)
- Removedwrappy@1.0.2(transitive)