i18next-extract-gettext
Advanced tools
Comparing version 3.1.2 to 3.1.3
@@ -5,3 +5,3 @@ #!/usr/bin/env node | ||
var Parser = require('i18next-scanner').Parser | ||
var converter = require('i18next-conv-inline') | ||
var converter = require('i18next-conv') | ||
var glob = require('glob') | ||
@@ -59,8 +59,3 @@ var debug = require('debug')('i18next-extract-gettext') | ||
debug('Converting ' + Object.keys(json).length + ' translation keys into gettext') | ||
converter.i18nextToGettext('en', json, {quiet: true}, function (err, data) { | ||
if (err) { | ||
console.log(err) | ||
process.exit(1) | ||
} | ||
converter.i18nextToPot('en', JSON.stringify(json), {quiet: true}).then(function (data) { | ||
debug('Writing into output file') | ||
@@ -67,0 +62,0 @@ fs.writeFileSync(outputFile, data, 'utf-8') |
{ | ||
"name": "i18next-extract-gettext", | ||
"version": "3.1.2", | ||
"version": "3.1.3", | ||
"description": "A CLI tool for extracting a gettext POT file from multiple JS source files using i18next", | ||
@@ -31,3 +31,3 @@ "main": "index.js", | ||
"glob": "^7.0.3", | ||
"i18next-conv-inline": "^3.0.0", | ||
"i18next-conv": "^3.0.1", | ||
"i18next-scanner": "^1.4.1", | ||
@@ -34,0 +34,0 @@ "minimist": "^1.2.0" |
Sorry, the diff of this file is not supported yet
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
31783
16
55
+ Addedi18next-conv@^3.0.1
+ Addedansi-regex@2.1.1(transitive)
+ Addedansi-styles@2.2.1(transitive)
+ Addedbluebird@3.7.2(transitive)
+ Addedchalk@1.1.3(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedhas-ansi@2.0.0(transitive)
+ Addedi18next-conv@3.0.3(transitive)
+ Addedpkginfo@0.4.1(transitive)
+ Addedstrip-ansi@3.0.1(transitive)
+ Addedsupports-color@2.0.0(transitive)
- Removedi18next-conv-inline@^3.0.0
- Removedcolors@1.4.0(transitive)
- Removedi18next-conv-inline@3.1.2(transitive)