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

@eliumhq/elium-i18n

Package Overview
Dependencies
Maintainers
3
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eliumhq/elium-i18n - npm Package Compare versions

Comparing version 1.0.6 to 2.0.0

scripts/compile.js

11

package.json
{
"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

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