@eliumhq/elium-i18n
Advanced tools
Comparing version 1.0.6 to 2.0.0
{ | ||
"name": "@eliumhq/elium-i18n", | ||
"version": "1.0.6", | ||
"version": "2.0.0", | ||
"engines": { | ||
@@ -10,3 +10,7 @@ "node": ">=9", | ||
"elium-i18n": "bin/elium-i18n" | ||
}, | ||
}, | ||
"files": [ | ||
"bin", | ||
"scripts" | ||
], | ||
"description": "", | ||
@@ -23,3 +27,4 @@ "main": "index.js", | ||
"gettext-parser": "^2.0.0", | ||
"htmlclean": "^3.0.8" | ||
"htmlclean": "^3.0.8", | ||
"i18next-conv": "^8.0.1" | ||
}, | ||
@@ -26,0 +31,0 @@ "devDependencies": { |
@@ -58,2 +58,12 @@ const fs = require('fs') | ||
existingTrans.locations.push(location) | ||
if (existingTrans.plural && plural && existingTrans.plural !== plural) { | ||
throw new Error( | ||
`Different plurals for "${value}" at ${JSON.stringify(existingTrans.locations)} and ${JSON.stringify( | ||
location | ||
)}` | ||
) | ||
} | ||
if (!existingTrans.plural && plural) { | ||
existingTrans.plural = plural | ||
} | ||
} else { | ||
@@ -60,0 +70,0 @@ this.messages[domain][getMessageKey({ value, context })] = { |
@@ -7,3 +7,3 @@ const { exec } = require('./utils') | ||
module.exports = async (languages, commit = true, source) => { | ||
module.exports = async (languages, source) => { | ||
console.log('Pulling PO files...') | ||
@@ -30,14 +30,2 @@ const langs = languages | ||
} | ||
if (commit) { | ||
console.log('Committing...') | ||
try { | ||
await exec('git add translations/*/*.po') | ||
await exec(`git commit -m"chore(i18n): Update translations"`) | ||
console.log('Done !') | ||
} catch (err) { | ||
console.error(err) | ||
process.exit(1) | ||
} | ||
} | ||
} |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
14744
7
11
327
4
2
+ Addedi18next-conv@^8.0.1
+ Addedansi-styles@3.2.1(transitive)
+ Addedbluebird@3.7.2(transitive)
+ Addedchalk@2.4.2(transitive)
+ Addedcolor-convert@1.9.3(transitive)
+ Addedcolor-name@1.1.3(transitive)
+ Addedhas-flag@3.0.0(transitive)
+ Addedi18next-conv@8.0.1(transitive)
+ Addedlodash.get@4.4.2(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedmkdirp@0.5.6(transitive)
+ Addednode-gettext@2.1.0(transitive)
+ Addedsupports-color@5.5.0(transitive)